Original Post
This is strange... I have a function that I register with Lua using lua_register (specifically: lua_register(L, "GetPCCalled", Lua_GetPCCalled); ), yet when I try to call it in a script, it says "../testlua.lua:1: attempt to call global `GetPCCalled' (a nil value)". Some of my other functions bind just fine so I've no idea what the problem is. When I iterate through the table of globals it's just not in there. Anybody got any clues at what I could look at to fix this?