Skip to content

Replace C++11 raw string literal by C array#90

Open
aleksander wants to merge 1 commit intombevand:masterfrom
aleksander:clcode-as-c-array
Open

Replace C++11 raw string literal by C array#90
aleksander wants to merge 1 commit intombevand:masterfrom
aleksander:clcode-as-c-array

Conversation

@aleksander
Copy link

This commit replaces C++11 raw string literal R"_mrb_( ... )_mrb_" by C array.
Main reason for this is possibility to compile with clang instead of gcc.

Makefile Outdated
echo ')_mrb_";' >>$@
_kernel.h: input.cl param.h
cpp $< ocl.code
echo -ne "\x00" >> ocl.code
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo -n is not portable, please use printf instead.

@aleksander aleksander force-pushed the clcode-as-c-array branch 2 times, most recently from fc89d50 to 7b900f7 Compare December 14, 2016 19:46
@mbevand
Copy link
Owner

mbevand commented Dec 19, 2016

This seems good. I'll merge this at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants