liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.08k stars 1.71k forks source link

Where is the definition of _ccv_identifier_ #203

Closed wandering007 closed 7 years ago

wandering007 commented 7 years ago

There are several occurrences of _ccv_identifier_ in ccv_internal.h:

#define ccv_sign_with_literal(string) \
    char INTERNAL_CATCH_UNIQUE_NAME(_ccv_identifier_)[] = (string); \
    size_t INTERNAL_CATCH_UNIQUE_NAME(_ccv_string_size_) = sizeof(INTERNAL_CATCH_UNIQUE_NAME(_ccv_identifier_));

#define ccv_sign_with_format(size, string, ...) \
    char INTERNAL_CATCH_UNIQUE_NAME(_ccv_identifier_)[(size)]; \
    memset(INTERNAL_CATCH_UNIQUE_NAME(_ccv_identifier_), 0, (size)); \
    snprintf(INTERNAL_CATCH_UNIQUE_NAME(_ccv_identifier_), (size), (string), ##__VA_ARGS__); \
    size_t INTERNAL_CATCH_UNIQUE_NAME(_ccv_string_size_) = (size); 

But I cannot find the definition of it...