MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaK_getlabel

Function luaK_getlabel

libraries/AP_Scripting/lua/src/lcode.c:175–178  ·  view source on GitHub ↗

** returns current 'pc' and marks it as a jump target (to avoid wrong ** optimizations with consecutive instructions not in the same basic block). */

Source from the content-addressed store, hash-verified

173** optimizations with consecutive instructions not in the same basic block).
174*/
175int luaK_getlabel (FuncState *fs) {
176 fs->lasttarget = fs->pc;
177 return fs->pc;
178}
179
180
181/*

Callers 6

labelstatFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85
luaK_patchtohereFunction · 0.85
code_loadboolFunction · 0.85
exp2regFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected