MCPcopy Create free account
hub / github.com/DFHack/dfhack / internal_getAddress

Function internal_getAddress

library/LuaApi.cpp:3736–3745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3734}
3735
3736static int internal_getAddress(lua_State *L)
3737{
3738 const char *name = luaL_checkstring(L, 1);
3739 uintptr_t addr = Core::getInstance().vinfo->getAddress(name);
3740 if (addr)
3741 lua_pushinteger(L, addr);
3742 else
3743 lua_pushnil(L);
3744 return 1;
3745}
3746
3747static int internal_setAddress(lua_State *L)
3748{

Callers 1

internal_setAddressFunction · 0.85

Calls 2

lua_pushintegerFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected