gmod-module-base
gmod-module-base copied to clipboard
The base interface to create binary modules for Garry's Mod
It's still not really feasible to stick with just ILuaBase for modules since it's missing some core Lua functionality. Specifically: - lua_callk - lua_concat - lua_createtable arguments - lua_error (erroring...
The --platform flag to premake4 was still producing makefiles that compiled 64-bit binaries.
The modules either crash or return incorrect values. http://facepunch.com/showthread.php?t=1260809&p=42916561#post42916561 Example: `````` lua require'example' -- [url]https://github.com/garrynewman/gmod-module-base/blob/master/example/src/gm_example.cpp[/url] local var local thread = coroutine.create(function() var = TestFunction(123,321) ErrorNoHalt(TestFunction()) coroutine.yield() var = TestFunction() end)...