1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

bug895.c compliant token pasting syntax to remove warnings

Gets rid of some unnecessary warning spam in the test log of lines like this:
```
bug895.c:95: Warning: Pasting formed "unsigned_long_14(", an invalid preprocessing token
```
This commit is contained in:
Brad Smith 2023-05-02 18:18:10 -04:00 committed by GitHub
parent 805e98a7aa
commit 2c47ea45af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ unsigned int uia, uib;
unsigned long ula, ulb; unsigned long ula, ulb;
#define OPTCMP8TEST_SINGLE(num,cmpop,asmprefix,vara,varb,b0,b1,a0,a1,typename,name) \ #define OPTCMP8TEST_SINGLE(num,cmpop,asmprefix,vara,varb,b0,b1,a0,a1,typename,name) \
typename name ## _ ## num ## (void) { \ typename name ## _ ## num(void) { \
varb = b0; \ varb = b0; \
asm( asmprefix ); \ asm( asmprefix ); \
vara = a0; \ vara = a0; \
@ -30,7 +30,7 @@ unsigned long ula, ulb;
} }
#define OPTCMP8TEST_VERIFY(num,b,desc,printterm,name) \ #define OPTCMP8TEST_VERIFY(num,b,desc,printterm,name) \
ASSERT_AreEqual(name ## _ ## num ##(),b,printterm,"Incorrect optimization of const comparison (" #name "_" #num ": " desc ")."); ASSERT_AreEqual(name ## _ ## num(),b,printterm,"Incorrect optimization of const comparison (" #name "_" #num ": " desc ").");
/* Generates a set of comparison tests for one type and set of test values. /* Generates a set of comparison tests for one type and set of test values.
** name = a name for this test (no spaces) ** name = a name for this test (no spaces)