1 : /*
2 : * Copyright 2008 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can
4 : * be found in the LICENSE file.
5 : */
6 :
7 : /*
8 : * NaCl service runtime, support for check macros.
9 : */
10 :
11 : #include "native_client/src/shared/platform/nacl_check.h"
12 :
13 : #if _DEBUG
14 : int nacl_check_debug_mode = 1;
15 : #else
16 : int nacl_check_debug_mode = 0;
17 : #endif
18 :
19 3 : void NaClCheckSetDebugMode(int mode) {
20 3 : nacl_check_debug_mode = mode;
21 3 : }
22 :
23 0 : void NaClCheckIntern(const char *fmt, ...) {
24 : va_list ap;
25 :
26 0 : va_start(ap, fmt);
27 0 : NaClLogV(LOG_FATAL, fmt, ap);
28 0 : va_end(ap);
29 0 : }
|