MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / dumpAlign

Function dumpAlign

third-party/lua-5.5.0/src/ldump.c:66–74  ·  view source on GitHub ↗

** Dump enough zeros to ensure that current position is a multiple of ** 'align'. */

Source from the content-addressed store, hash-verified

64** 'align'.
65*/
66static void dumpAlign (DumpState *D, unsigned align) {
67 unsigned padding = align - cast_uint(D->offset % align);
68 if (padding < align) { /* padding == align means no padding */
69 static lua_Integer paddingContent = 0;
70 lua_assert(align <= sizeof(lua_Integer));
71 dumpBlock(D, &paddingContent, padding);
72 }
73 lua_assert(D->offset % align == 0);
74}
75
76
77#define dumpVar(D,x) dumpVector(D,&x,1)

Callers 2

dumpCodeFunction · 0.85
dumpDebugFunction · 0.85

Calls 1

dumpBlockFunction · 0.70

Tested by

no test coverage detected