public static void lua_register(lua_State L, string n, lua_CFunction f) { lua_pushcfunction(L, f); lua_setglobal(L, n); }