MCPcopy Create free account
hub / github.com/DFHack/dfhack / pushutfchar

Function pushutfchar

depends/lua/src/lutf8lib.c:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128static void pushutfchar (lua_State *L, int arg) {
129 lua_Integer code = luaL_checkinteger(L, arg);
130 luaL_argcheck(L, 0 <= code && code <= MAXUNICODE, arg, "value out of range");
131 lua_pushfstring(L, "%U", (long)code);
132}
133
134
135/*

Callers 1

utfcharFunction · 0.85

Calls 2

luaL_checkintegerFunction · 0.85
lua_pushfstringFunction · 0.85

Tested by

no test coverage detected