NAP
nap
core
src
nap
assert.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
// External Includes
8
#include <utility/dllexport.h>
9
10
namespace
nap
11
{
21
void
NAPAPI
_assert
(
const
char
* exprs,
bool
expr,
const
char
* file,
int
line);
22
33
void
NAPAPI
_assertMsg
(
const
char
* exprs,
bool
expr,
const
char
* file,
int
line,
const
char
* message);
34
}
35
36
#ifndef NDEBUG
37
#define NAP_ASSERT(Expr) \
38
nap::_assert(#Expr, Expr, __FILE__, __LINE__);
39
#define NAP_ASSERT_MSG(Expr, Msg) \
40
nap::_assertMsg(#Expr, Expr, __FILE__, __LINE__, Msg);
41
#else
42
#define NAP_ASSERT(Expr);
43
#define NAP_ASSERT_MSG(Expr, Message);
44
#endif // !NDEBUG
nap::_assert
void NAPAPI _assert(const char *exprs, bool expr, const char *file, int line)
nap
Definition:
templateapp.h:17
nap::_assertMsg
void NAPAPI _assertMsg(const char *exprs, bool expr, const char *file, int line, const char *message)
Generated by doxygen