MCPcopy Create free account
hub / github.com/axmolengine/axmol / alloc_newuserdata

Function alloc_newuserdata

3rdparty/lua/sol/sol.hpp:10956–10962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10954 using unique_tag = detail::inheritance_unique_cast_function;
10955
10956 inline void* alloc_newuserdata(lua_State* L, std::size_t bytesize) {
10957#if SOL_LUA_VERSION_I_ >= 504
10958 return lua_newuserdatauv(L, bytesize, 1);
10959#else
10960 return lua_newuserdata(L, bytesize);
10961#endif
10962 }
10963
10964 constexpr std::uintptr_t align(std::size_t alignment, std::uintptr_t ptr, std::size_t& space) {
10965 // this handles arbitrary alignments...

Callers 7

attempt_allocFunction · 0.85
attempt_alloc_uniqueFunction · 0.85
usertype_allocateFunction · 0.85
usertype_unique_allocateFunction · 0.85
user_allocateFunction · 0.85
pushMethod · 0.85

Calls 1

lua_newuserdatauvFunction · 0.85

Tested by

no test coverage detected