A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 50 lines 1.6 kB view raw
1/* 2** $Id$ 3** Auxiliary functions from Debug Interface module 4** See Copyright Notice in lua.h 5*/ 6 7#ifndef ldebug_h 8#define ldebug_h 9 10 11#include "lstate.h" 12 13 14#define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 16#ifdef LUA_OPTIMIZE_DEBUG 17# include "lvm.h" 18# define getline(f,pc) (((f)->packedlineinfo) ? luaG_getline((f), pc) : 0) 19# define INFO_FILL_BYTE 0x7F 20# define INFO_DELTA_MASK 0x80 21# define INFO_SIGN_MASK 0x40 22# define INFO_DELTA_6BITS 0x3F 23# define INFO_DELTA_7BITS 0x7F 24# define INFO_MAX_LINECNT 126 25# define lineInfoTop(fs) ((fs)->f->packedlineinfo + (fs)->lastlineOffset) 26#else 27# define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 28#endif 29 30#define resethookcount(L) (L->hookcount = L->basehookcount) 31 32 33LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 34 const char *opname); 35LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 36LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 37 const TValue *p2); 38LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 39 const TValue *p2); 40LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 41LUAI_FUNC void luaG_errormsg (lua_State *L); 42LUAI_FUNC int luaG_checkcode (const Proto *pt); 43LUAI_FUNC int luaG_checkopenop (Instruction i); 44 45#ifdef LUA_OPTIMIZE_DEBUG 46LUAI_FUNC int luaG_getline (const Proto *f, int pc); 47LUAI_FUNC int luaG_stripdebug (lua_State *L, Proto *f, int level, int recv); 48#endif 49 50#endif