Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/test/cmake/cmake_with_emval/main.cpp
6178 views
1
// Copyright 2016 The Emscripten Authors. All rights reserved.
2
// Emscripten is available under two separate licenses, the MIT license and the
3
// University of Illinois/NCSA Open Source License. Both these licenses can be
4
// found in the LICENSE file.
5
6
#include <emscripten/val.h>
7
#include <emscripten/bind.h>
8
#include <emscripten/wire.h>
9
#include <stdio.h>
10
#include <stdlib.h>
11
12
int main() {
13
#if __STRICT_ANSI__
14
int strict_ansi = 1;
15
#else
16
int strict_ansi = 0;
17
#endif
18
printf("Hello! __STRICT_ANSI__: %d, __cplusplus: %ld\n", strict_ansi, __cplusplus);
19
}
20
21