Skip to content

[Preprocessor] Adds OCCA defines when compiling kernels #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 31, 2020

Conversation

dmed256
Copy link
Member

@dmed256 dmed256 commented May 31, 2020

Description

Adds the following defines when compiling OKL kernels:

  • OCCA_MAJOR_VERSION
  • OCCA_MINOR_VERSION
  • OCCA_PATCH_VERSION
  • OCCA_VERSION
  • OKL_VERSION
  • __OKL__
  • __OCCA__

All of these defines can be found in include/occa/defines/occa.hpp except for the following which are defined as a plain 1 to be truthy:

  • __OKL__
  • __OCCA__

@dmed256 dmed256 added the parser label May 31, 2020
@dmed256 dmed256 merged commit 4c1a308 into master May 31, 2020
@dmed256 dmed256 deleted the lang/adds-macro-define branch May 31, 2020 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant