lbce/include/types.h

38 lines
514 B
C

#ifndef __TYPES_H
#define __TYPES_H
#include <stdint.h>
typedef Integer int;
typedef byte uint8_t;
struct String {
size_t size;
char* data;
}
struct Header {
uint32_t signature;
uint8_t lua_version;
uint8_t format_version;
uint8_t endianness;
uint8_t int_size;
uint8_t size_size;
uint8_t instr_size;
uint8_t number_size;
uint8_t integral;
}
struct Function {
String source_name;
Integer line_def;
Integer line_end;
byte upval_num;
byte param_num;
byte is_vararg;
byte max_stack;
}
#endif