Merge pull request #1178 from cengizIO/master
Avoid impl dependent multi-char constants
This commit is contained in:
commit
367b227d22
@ -851,7 +851,7 @@ void shimInitialize(lua_State* L)
|
||||
|
||||
// Find the 'SHIM' entry in the registry.
|
||||
const Table* reg = hvalue(&G(L)->l_registry);
|
||||
const Node* n = findNode(reg, 'SHIM');
|
||||
const Node* n = findNode(reg, 0x5348494D); // equal to 'SHIM'
|
||||
assert(n != NULL);
|
||||
|
||||
g_shimTable = (const LuaFunctionTable_t*)n->i_val.value_.p;
|
||||
|
@ -194,7 +194,7 @@ int premake_init(lua_State* L)
|
||||
#endif
|
||||
|
||||
lua_pushlightuserdata(L, &s_shimTable);
|
||||
lua_rawseti(L, LUA_REGISTRYINDEX, 'SHIM');
|
||||
lua_rawseti(L, LUA_REGISTRYINDEX, 0x5348494D); // equal to 'SHIM'
|
||||
|
||||
/* push the application metadata */
|
||||
lua_pushstring(L, LUA_COPYRIGHT);
|
||||
|
Reference in New Issue
Block a user