added (and stripped) a simple C/C++ preprocessor (written in Lua), so the stringifier can handle the #include directive,

and embed the included files directly in the stringified files.
We need this, because we start sharing struct definitions and code between C/C++ and OpenCL (and potentially other languages)
preprocessor is from http://github.com/willsteel/lcpp
This commit is contained in:
erwincoumans
2013-08-01 21:05:19 -07:00
parent 34de49d8a4
commit 906415429c
33 changed files with 1339 additions and 55 deletions

View File

@@ -106,5 +106,4 @@ static const char* boundSearchKernelsCL= \
" }\n"
"}\n"
"\n"
"\n"
;

View File

@@ -107,5 +107,4 @@ static const char* fillKernelsCL= \
" }\n"
"}\n"
"\n"
"\n"
;

View File

@@ -154,5 +154,4 @@ static const char* prefixScanKernelsCL= \
" dst[cb.m_numBlocks] = sum;\n"
" }\n"
"}\n"
"\n"
;

View File

@@ -154,5 +154,4 @@ static const char* prefixScanKernelsFloat4CL= \
" dst[cb.m_numBlocks] = sum;\n"
" }\n"
"}\n"
"\n"
;