Commits

KS Sreeram  committed d3ab585

lua.highlevel: fix typos.

  • Participants
  • Parent commits 8f2d614

Comments (0)

Files changed (1)

File lib-clay/lua/highlevel/highlevel.clay

 [S | CCompatibleString?(S)]
 typeError(x:State, index:Int, expected:S) {
     safeCall(x, x ref=> {
-        lua_typerror(x.handle, index, cstring(expected));
+        luaL_typerror(x.handle, index, cstring(expected));
     });
 }
 
 [S | CCompatibleString?(S)]
 argError(x:State, index:Int, extraMsg:S) {
     safeCall(x, x ref=> {
-        lua_argerror(x.handle, index, cstring(extraMsg));
+        luaL_argerror(x.handle, index, cstring(extraMsg));
     });
 }
 
 overload argError(x:State, index:Int) {
     safeCall(x, x ref=> {
-        lua_argerror(x.handle, index, null(CChar));
+        luaL_argerror(x.handle, index, null(CChar));
     });
 }