Skip to content

Commit

Permalink
Update html documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mousebyte committed Jul 24, 2023
1 parent 5f6adbe commit f31ba3a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/usage/cclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ int main(void) {

// leaves a copy of the class on the stack which can be modified and/or
// loaded as a package
lua_getfield(L, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_insert(L, -2);
lua_setfield(L, -2, "MyClass");
lua_pop(L, 1);
luaC_setpackageloaded(L, "MyClass");

lua_pushnumber(L, 12);
luaC_construct(L, 1, "MyClass");
Expand Down

0 comments on commit f31ba3a

Please sign in to comment.