Pārlūkot izejas kodu

fixed invalid macro expansion

Nicolas Cannasse 7 gadi atpakaļ
vecāks
revīzija
ddd139a117
1 mainītis faili ar 1 papildinājumiem un 5 dzēšanām
  1. 1 5
      src/hl.h

+ 1 - 5
src/hl.h

@@ -566,11 +566,7 @@ HL_API int hl_hash_utf8( const char *str ); // no cache
 HL_API int hl_hash_gen( const uchar *name, bool cache_name );
 HL_API const uchar *hl_field_name( int hash );
 
-#ifdef HL_VCC
-#	define hl_error(msg, ...) hl_throw(hl_alloc_strbytes(USTR(msg), __VA_ARGS__))
-#else
-#	define hl_error(msg, ...) hl_throw(hl_alloc_strbytes(USTR(msg), #__VA_ARGS__))
-#endif
+#define hl_error(msg, ...) hl_throw(hl_alloc_strbytes(USTR(msg), ## __VA_ARGS__))
 
 HL_API vdynamic *hl_alloc_strbytes( const uchar *msg, ... );
 HL_API void hl_assert( void );