mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
userdata can handle arbitrary binary data;
user tag is stored with data;
This commit is contained in:
parent
b48847c5fa
commit
205ee1ec84
6 changed files with 79 additions and 41 deletions
4
opcode.h
4
opcode.h
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
** TeCGraf - PUC-Rio
|
||||
** $Id: opcode.h,v 3.23 1996/09/26 21:08:41 roberto Exp roberto $
|
||||
** $Id: opcode.h,v 3.24 1996/11/01 12:46:59 roberto Exp roberto $
|
||||
*/
|
||||
|
||||
#ifndef opcode_h
|
||||
|
|
@ -102,7 +102,6 @@ typedef union
|
|||
TaggedString *ts;
|
||||
TFunc *tf;
|
||||
struct Hash *a;
|
||||
void *u;
|
||||
int i;
|
||||
} Value;
|
||||
|
||||
|
|
@ -120,7 +119,6 @@ typedef struct Object
|
|||
#define tsvalue(o) ((o)->value.ts)
|
||||
#define avalue(o) ((o)->value.a)
|
||||
#define fvalue(o) ((o)->value.f)
|
||||
#define uvalue(o) ((o)->value.u)
|
||||
|
||||
/* Macros to access symbol table */
|
||||
#define s_object(i) (lua_table[i].object)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue