ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libhashkit-1.0 / basic_string.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 // No assumptions of NULL should be made
19
20 #define hashkit_size(X) (X).size;
21 #define hashkit_c_str(X) (X).c_str;
22 #define hashkit_string_param(X) (X).c_str, (X).size
23
24 #ifdef __cplusplus
25 # define hashkit_string_printf(X) int((X).size), (X).c_str
26 #else
27 # define hashkit_string_printf(X) (int) ((X).size), (X).c_str
28 #endif