MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaU_header

Function luaU_header

other_src/lua/src/lundump.cpp:218–231  ·  view source on GitHub ↗

* make header */

Source from the content-addressed store, hash-verified

216* make header
217*/
218void luaU_header (char* h)
219{
220 int x=1;
221 memcpy(h,LUA_SIGNATURE,sizeof(LUA_SIGNATURE)-1);
222 h+=sizeof(LUA_SIGNATURE)-1;
223 *h++=(char)LUAC_VERSION;
224 *h++=(char)LUAC_FORMAT;
225 *h++=(char)*(char*)&x; /* endianness */
226 *h++=(char)sizeof(int);
227 *h++=(char)sizeof(size_t);
228 *h++=(char)sizeof(Instruction);
229 *h++=(char)sizeof(lua_Number);
230 *h++=(char)(((lua_Number)0.5)==0); /* is lua_Number integral? */
231}

Callers 2

LoadHeaderFunction · 0.70
DumpHeaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected