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

Added add_ref() for module-compatibility.

Rev: src/svalue.h:1.12
parent c590231e
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,9 @@ struct svalue
#define FUNCTION_BUILTIN USHRT_MAX
/* Pike 0.6 compatibility... */
#define add_ref(X) ((X)->refs++)
#define is_gt(a,b) is_lt(b,a)
#define IS_ZERO(X) ((X)->type==T_INT?(X)->u.integer==0:(1<<(X)->type)&(BIT_OBJECT|BIT_FUNCTION)?!svalue_is_true(X):0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment