Sourceware Bugzilla – Attachment 8394 Details for
Bug 18604
assert macro-expands its argument
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Sample program showing assert expanding its argument unnecessarily
test.c (text/x-csrc), 249 bytes, created by
David Kastrup
on 2015-06-26 07:35:50 UTC
(
hide
)
Description:
Sample program showing assert expanding its argument unnecessarily
Filename:
MIME Type:
Creator:
David Kastrup
Created:
2015-06-26 07:35:50 UTC
Size:
249 bytes
patch
obsolete
>#include <stdio.h> >#include <assert.h> >#define STRINGIFY(arg) #arg >#define STRINGIFY2(arg) STRINGIFY(arg) >#define TEST(arg) fprintf (stderr, "%s: %s\n", #arg, arg) > >main () >{ > TEST (STRINGIFY (NULL)); > TEST (STRINGIFY2 (NULL)); > assert (NULL); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18604
: 8394