mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
17 lines
312 B
Plaintext
17 lines
312 B
Plaintext
#ifdef IS_C
|
|
#include <stdio.h>
|
|
#define PRINT(STR) printf(STR); printf("\n")
|
|
#else
|
|
#include <iostream>
|
|
#define PRINT(STR) std::cout << STR << std::endl
|
|
#endif
|
|
|
|
int main() {
|
|
#if defined(CHECK_USING_CLANG) && !defined(__clang__)
|
|
PRINT("compiler is not clang");
|
|
return 1;
|
|
#endif
|
|
PRINT("all ok");
|
|
return 0;
|
|
}
|