m-schmoock / lcpp

A Lua C PreProcessor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing "##" operator

m-schmoock opened this issue · comments

The ## is the pre-processor token pasting operator.The left token is appended with the right token.

example:

define DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name

Should expand to:
struct HINSTANCE__ { int unused; }; typedef struct HINSTANCE__ *HINSTANCE;

implemented by
5cad045