1 : /*
2 : * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can be
4 : * 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 defined(_DEBUG)
14 : int nacl_check_debug_mode = 1;
15 : #else
16 : int nacl_check_debug_mode = 0;
17 : #endif
18 :
19 1 : void NaClCheckSetDebugMode(int mode) {
20 1 : nacl_check_debug_mode = mode;
21 1 : }
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 : }
|