X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fyenc.qh;h=e71c68ef63683aa0caeb762f79971c32c83fb577;hb=cee83985e3adc137911beaaa9196cc6800912cd0;hp=dce6e9c9d82459022ec231eeb5ee03b3f5e41c0e;hpb=0dec7bcf5fa101452e59fe30b74daf24251d93e8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/yenc.qh b/qcsrc/lib/yenc.qh index dce6e9c9d..e71c68ef6 100644 --- a/qcsrc/lib/yenc.qh +++ b/qcsrc/lib/yenc.qh @@ -3,7 +3,7 @@ #include "test.qh" #define yenc_single(c, ret) \ - MACRO_BEGIN { \ + MACRO_BEGIN \ int conv = c; \ conv += 42; \ if (conv >= 256) conv -= 256; \ @@ -26,10 +26,10 @@ break; \ } \ } \ - } MACRO_END + MACRO_END #define ydec_single(stringiter, ret) \ - MACRO_BEGIN { \ + MACRO_BEGIN \ int conv = STRING_ITERATOR_GET(stringiter); \ if (conv <= 0) { \ ret = -1; \ @@ -42,7 +42,7 @@ conv -= 42; \ ret = conv; \ } \ - } MACRO_END + MACRO_END TEST(yEnc, EncodeDecode) {