Ole лет назад: 10
Родитель
Сommit
74eef9ed26
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/luwra/types.hpp

+ 1 - 1
lib/luwra/types.hpp

@@ -100,7 +100,7 @@ T read(State* state, int index) {
 	 * Check if the value at index `n` is a C function and retrieve it.
 	 * Check if the value at index `n` is a C function and retrieve it.
 	 */
 	 */
 	#define luaL_checkcfunction(state, n) \
 	#define luaL_checkcfunction(state, n) \
-		(luaL_checktype(state, n, LUA_TCFUNCTION), lua_toboolean(state, n))
+		(luaL_checktype(state, n, LUA_TCFUNCTION), lua_tocfunction(state, n))
 #endif
 #endif
 
 
 #ifndef luaL_pushstdstring
 #ifndef luaL_pushstdstring