Permalink
Browse files

Add useful macros

  • Loading branch information...
1 parent 382653a commit 0a14a32c784fdc9392e7b2776bbc6708622daf34 @zsuraski zsuraski committed Apr 25, 2000
Showing with 7 additions and 0 deletions.
  1. +7 −0 Zend/zend_hash.h
View
@@ -182,4 +182,11 @@ void zend_hash_display(HashTable *ht);
END_EXTERN_C()
+#define ZEND_INIT_SYMTABLE(ht) \
+ ZEND_INIT_SYMTABLE_EX(ht, 2, 0)
+
+#define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \
+ zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
+
+
#endif /* _HASH_ */

0 comments on commit 0a14a32

Please sign in to comment.