#ifndef _TX01_MAGIC_MATCH_HPP_ #define _TX01_MAGIC_MATCH_HPP_ 1 template const T *tx01_try_match_magic(const char *p) { const T *ptr = (const T*) p; if (ptr->magic == magic) return ptr; return NULL; } #endif