diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2025-09-27 17:38:21 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2025-09-27 17:38:21 -0500 |
| commit | 3107fadd9d5146a0fa25dd82eb04172b5d98d1d8 (patch) | |
| tree | d90645b81deb11b77210f41cc4bb6e894f9d7b94 | |
| parent | a50b104111910bf49537f2db9298a2057336efe8 (diff) | |
| -rw-r--r-- | content/cheatsheets/c_cpp.md | 10 | ||||
| -rw-r--r-- | hugo.toml | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/content/cheatsheets/c_cpp.md b/content/cheatsheets/c_cpp.md index 077255e..ad07dab 100644 --- a/content/cheatsheets/c_cpp.md +++ b/content/cheatsheets/c_cpp.md @@ -15,7 +15,7 @@ title = 'C/C++' * [predef wiki](https://github.com/cpredef/predef) ### Platform detection -``` +```c #ifdef _WIN32 // Windows #endif @@ -31,7 +31,7 @@ title = 'C/C++' ``` ### Compiler detection -``` +```c #ifdef __GNUC__ // GCC #endif @@ -46,7 +46,7 @@ title = 'C/C++' ``` ### Architecture detection -``` +```c #if (defined(_MSC_VER) && _M_X64) || (defined(__GNUC__) && __amd64__) // x86-64 #endif @@ -57,7 +57,7 @@ title = 'C/C++' ``` ### GCC pragmas -``` +```c // Push/pop warning state #pragma GCC diagnostic push #pragma GCC diagnostic pop @@ -67,7 +67,7 @@ title = 'C/C++' ``` ### MSVC pragmas -``` +```c // Link against abc.lib #pragma comment(lib, "abc.lib") @@ -3,3 +3,5 @@ languageCode = 'en-us' title = 'kvog.sh' theme = 'hugo-xmin' +[markup.highlight] +style = "github"
\ No newline at end of file |