Skip to content
Snippets Groups Projects
Commit b4185edb authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Bugfix.

Rev: src/error.c:1.44
parent ae28250e
Branches
Tags
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "module_support.h" #include "module_support.h"
#include "threads.h" #include "threads.h"
RCSID("$Id: error.c,v 1.43 2000/04/04 15:30:21 grubba Exp $"); RCSID("$Id: error.c,v 1.44 2000/04/04 15:39:13 grubba Exp $");
#undef ATTRIBUTE #undef ATTRIBUTE
#define ATTRIBUTE(X) #define ATTRIBUTE(X)
...@@ -372,8 +372,15 @@ void f_error_backtrace(INT32 args) ...@@ -372,8 +372,15 @@ void f_error_backtrace(INT32 args)
#define ERROR_COPY(STRUCT,X) \ #define ERROR_COPY(STRUCT,X) \
ERROR_STRUCT(STRUCT,o)->X=X ERROR_STRUCT(STRUCT,o)->X=X
#define ERROR_COPY_SVALUE(STRUCT,X) \ #define ERROR_COPY_SVALUE(STRUCT,X) do { \
(X?assign_svalue_no_free( & ERROR_STRUCT(STRUCT,o)->X, X):((ERROR_STRUCT(STRUCT, o)->X.type = T_INTEGER), (ERROR_STRUCT(STRUCT, o)->X.subtype = 0), (ERROR_STRUCT(STRUCT, o)->X.u.integer = 0))) if (X) { \
assign_svalue_no_free( & ERROR_STRUCT(STRUCT,o)->X, X); \
} else { \
ERROR_STRUCT(STRUCT, o)->X.type = T_INT; \
ERROR_STRUCT(STRUCT, o)->X.subtype = 0; \
ERROR_STRUCT(STRUCT, o)->X.u.integer = 0; \
} \
} while (0)
#define ERROR_COPY_REF(STRUCT,X) \ #define ERROR_COPY_REF(STRUCT,X) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment