Skip to content
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

Pre processor syntax error correction, and some simple code formatting #1598

Merged
merged 2 commits into from
Jul 13, 2024

Conversation

Strings-RH
Copy link
Contributor

There are a few syntax errors in include/version.hpp

#if defined(SOL_COMPILER_CLANG)
	#if defined(SOL_COMPILER_CLANG != 0)

which should be

#if defined(SOL_COMPILER_CLANG)
	#if (SOL_COMPILER_CLANG != 0)

Also, while reviewing the remainder of version.hpp, the use of parenthesis on the second condition when using this pattern is inconsistent, so I have normalized the formatting throughout the file.

#if defined(SOL_SAFE_GETTER)
	#if SOL_SAFE_GETTER != 0

becomes

#if defined(SOL_SAFE_GETTER)
	#if (SOL_SAFE_GETTER != 0)

@ThePhD ThePhD merged commit 2b0d2fe into ThePhD:develop Jul 13, 2024
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.

None yet

2 participants