mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-16 06:45:44 +08:00
14 lines
534 B
C
14 lines
534 B
C
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
||
|
// This code is based on Lua 5.x implementation licensed under MIT License; see lua_LICENSE.txt for details
|
||
|
#pragma once
|
||
|
|
||
|
#include "lobject.h"
|
||
|
|
||
|
/* special tag value is used for user data with inline dtors */
|
||
|
#define UTAG_IDTOR LUA_UTAG_LIMIT
|
||
|
|
||
|
#define sizeudata(len) (offsetof(Udata, data) + len)
|
||
|
|
||
|
LUAI_FUNC Udata* luaU_newudata(lua_State* L, size_t s, int tag);
|
||
|
LUAI_FUNC void luaU_freeudata(lua_State* L, Udata* u);
|