Luanti 5.16.0-dev
Loading...
Searching...
No Matches
PackedInstr Struct Reference

Represents a single instruction that pushes a new value or operates with existing ones. More...

#include <c_packer.h>

Collaboration diagram for PackedInstr:

Public Member Functions

 PackedInstr ()

Public Attributes

s16 type
u16 set_into
bool keep_ref
bool pop
union { 
   bool   bdata 
   lua_Number   ndata 
   struct { 
      u16   uidata1 
      u16   uidata2 
   } 
   struct { 
      s32   sidata1 
      s32   sidata2 
   } 
   void *   ptrdata 
}; 
std::string sdata

Detailed Description

Represents a single instruction that pushes a new value or operates with existing ones.

Constructor & Destructor Documentation

◆ PackedInstr()

PackedInstr::PackedInstr ( )
inline

References keep_ref, pop, set_into, and type.

Member Data Documentation

◆ [union]

union { ... } PackedInstr

◆ bdata

bool PackedInstr::bdata

◆ keep_ref

bool PackedInstr::keep_ref

Referenced by PackedInstr().

◆ ndata

lua_Number PackedInstr::ndata

◆ pop

bool PackedInstr::pop

Referenced by PackedInstr().

◆ ptrdata

void* PackedInstr::ptrdata

◆ sdata

std::string PackedInstr::sdata

◆ set_into

u16 PackedInstr::set_into

Referenced by PackedInstr().

◆ sidata1

s32 PackedInstr::sidata1

◆ sidata2

s32 PackedInstr::sidata2

◆ type

s16 PackedInstr::type

Referenced by PackedInstr().

◆ uidata1

u16 PackedInstr::uidata1

◆ uidata2

u16 PackedInstr::uidata2

The documentation for this struct was generated from the following file: