123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef BASE_DEBUG_ALIAS_H_
- #define BASE_DEBUG_ALIAS_H_
- #include <stddef.h>
- #include "base/base_export.h"
- namespace base {
- namespace debug {
- void BASE_EXPORT Alias(const void* var);
- }
- BASE_EXPORT size_t strlcpy(char* dst, const char* src, size_t dst_size);
- }
- #define DEBUG_ALIAS_FOR_CSTR(var_name, c_str, char_count) \
- char var_name[char_count]; \
- ::base::strlcpy(var_name, (c_str), sizeof(var_name)); \
- ::base::debug::Alias(var_name);
- #endif
|