-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
The README mentions:
with-c-syntax/test/libc_string.lisp
Lines 143 to 144 in e3e9ae2
output = with-output-to-string (`(*standard-output*), //; To preserve parens, I used Lisp escape | |
format(t, "Found '~C' starting at '~A'", target, result)); |
I think it should be possible to specify either manual or semi-automatic translations for macros which have a &BODY
parameter, such as WITH-OPEN-FILE
. A &BODY
parameter is equivalent to a logical block that could be enclosed within a C-style block.
For example, the above macro could be written as:
output = with-output-to-string(*standard-output*) {
format(t, "Found '~C' starting at '~A'", target, result));
};
y2q-actionman and vendethiel
Metadata
Metadata
Assignees
Labels
No labels