XBT_DEBUG("Checking the task's metatable: expected %p, found %p", correct_mt, actual_mt);
sglua_stack_dump(L, "my_checkudata: ");
- if (p == nullptr || !lua_getmetatable(L, ud) || !lua_rawequal(L, -1, -2))
+ if (p == nullptr || not lua_getmetatable(L, ud) || not lua_rawequal(L, -1, -2))
XBT_ERROR("Error: Userdata is nullptr, couldn't find metatable or top of stack does not equal element below it.");
lua_pop(L, 2);
return p;
* This function is a valid lua_Writer that writes into a memory buffer passed
* as userdata.
*
- * @param L a lua state
- * @param source some data
- * @param sz number of bytes of data
- * @param user_data the memory buffer to write
+ * @param L a lua state
+ * @param source some data
+ * @param size number of bytes of data
+ * @param userdata the memory buffer to write
*/
int sglua_memory_writer(lua_State* L, const void* source, size_t size,
void* userdata) {