Skip to content

Commit

Permalink
Added platform dependent path separator macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Dec 13, 2023
1 parent 2a1fb76 commit a18190e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions seika/utils/se_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ extern "C" {
#define SE_TRIGGER_BREAKPOINT
#endif

#if defined(_WIN32) || defined(_WIN64) // Windows
#define SE_PLATFORM_PATH_SEPARATOR_STRING "\\"
#else
#define SE_PLATFORM_PATH_SEPARATOR_STRING "/"
#endif

bool se_platform_is_debugger_attached();

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seika",
"version": "0.0.8",
"version": "0.0.9",
"dependencies": [
{
"name": "sdl2",
Expand Down

0 comments on commit a18190e

Please sign in to comment.