Add field allocf_ud to replace current ud.

Since some use it as `mrb_state` associated user data.
This commit is contained in:
take_cheeze
2014-07-17 21:48:17 +09:00
parent d17506c176
commit fc9a91c4a6
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -112,6 +112,7 @@ typedef struct mrb_state {
struct mrb_jmpbuf *jmp;
mrb_allocf allocf; /* memory allocation function */
void *allocf_ud; /* auxiliary data of allocf */
struct mrb_context *c;
struct mrb_context *root_c;