bagder / fcpp Goto Github PK
View Code? Open in Web Editor NEWFrexx C preprocessor
Home Page: https://daniel.haxx.se/projects/fcpp/
License: BSD 3-Clause "New" or "Revised" License
Frexx C preprocessor
Home Page: https://daniel.haxx.se/projects/fcpp/
License: BSD 3-Clause "New" or "Revised" License
Frexx CPP (C Preprocessor) Copyright (c) by Daniel Stenberg 1993 - 2011 This is a C preprocessor. It is a project based on public domain code, then forked by Daniel in 1993 and future work has been done under a BSD license. The C preprocessor is now (mostly?) ANSI C compliant, and some tweaks have been applied to also make it fairly usable to process other data files, such as HTML for simple web sites. WWW: http://daniel.haxx.se/projects/fcpp/ Code: https://github.com/bagder/fcpp
the following fails
#define MAC2STR(x) x[0],x[1],x[2],x[3],x[4],x[5]
#define FT_DEBUG(fmt, args...) if(pGlobalCtx && pGlobalCtx->debug_level>=2) printf("FT-dbg: "fmt, ##args)
FT_DEBUG(" %02x:%02x:%02x:%02x:%02x:%02x\n", MAC2STR(pCtx->wlan_intf_addr[i]));
gcc -E
if(pGlobalCtx && pGlobalCtx->debug_level>=2) printf("FT-dbg: "fmt, pCtx->wlan_intf_addr[i][0],pCtx->wlan_intf_addr[i][1],pCtx->wlan_intf_addr[i][2],pCtx->wlan_intf_addr[i][3],pCtx->wlan_intf_addr[i][4],pCtx->wlan_intf_addr[i][5]);
fcpp
Frexx C Preprocessor v1.5.1 Copyright (C) by FrexxWare 1993 - 2002.
Compiled Jan 18 2022
#line 1 "[stdin]"
cpp: "[stdin]", line 2: Error: #define syntax error
cpp: "[stdin]", line 2: Warning: Unexpected text in #control line ignored
cpp: "[stdin]", line 4: Warning: Wrong number of macro arguments for "FT_DEBUG"
;
This code:
#define K_DOUBLE(x) x##l
K_DOUBLE(0.5)
currently emits:
0.5�l
In an IDE the intermediate token is usually invisible leading to a very confusing compile error. However, it's just the TOK_SEP
character being inserted where a concat operation hasn't been detected.
I've "fixed" the issue here: Celtoys@b6f4e10
That may not be the best way of going about this so would appreciate your feedback.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.