acwj | A Compiler Writing Journey | Parser library
kandi X-RAY | acwj Summary
kandi X-RAY | acwj Summary
A Compiler Writing Journey
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of acwj
acwj Key Features
acwj Examples and Code Snippets
Community Discussions
Trending Discussions on acwj
QUESTION
I tried to make a simple lexer, I found this github page : https://github.com/DoctorWkt/acwj/tree/master/01_Scanner And in his source code I saw that:
data.h:
...ANSWER
Answered 2020-Sep-03 at 18:40#define extern_
tells the preprocessor to replace extern_
with nothing whenever it sees it.
So in this case extern_
means nothing.
But I bet in other files they don't use #define extern_
. In that case, the #define extern_ extern
in the header file is activated, because #ifndef extern_
is true (extern_
isn't defined yet). That tells the preprocessor to replace extern_
with extern
. So in one file the variables are defined without extern
, and in all the other files they have extern
. (Why is that useful? If you know how extern
works, you'll know why)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install acwj
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page