diff options
author | Andrey Hristov <andrey@php.net> | 2016-01-14 12:58:41 +0100 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2016-01-14 12:58:41 +0100 |
commit | c69c23ba2f732dd4b3a528fb3189ebdef6b4ed9e (patch) | |
tree | 046fb0d769de203ffd5f89b2f6ce993595c54c18 /ext/mysqlnd/mysqlnd_structs.h | |
parent | ca7b33e2475450b12bffbdf6406d3548798cd64b (diff) | |
download | php-git-c69c23ba2f732dd4b3a528fb3189ebdef6b4ed9e.tar.gz |
Convenience macros
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_structs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index 35a0f3b16c..926d9a98b2 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -32,6 +32,9 @@ #define MYSQLND_CLASS_METHODS_START(class) MYSQLND_CLASS_METHOD_TABLE_NAME_FORWARD(class) = { #define MYSQLND_CLASS_METHODS_END } +#define MYSQLND_CLASS_METHODS_INSTANCE_NAME(class) mysqlnd_##class##_methods_ptr +#define MYSQLND_CLASS_METHODS_INSTANCE_DECLARE(class) extern MYSQLND_CLASS_METHODS_TYPE(class) * MYSQLND_CLASS_METHODS_INSTANCE_NAME(class) +#define MYSQLND_CLASS_METHODS_INSTANCE_DEFINE(class) MYSQLND_CLASS_METHODS_TYPE(class) * MYSQLND_CLASS_METHODS_INSTANCE_NAME(class) = & MYSQLND_CLASS_METHOD_TABLE_NAME(class) typedef struct st_mysqlnd_string { |