vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Assert.C
Go to the documentation of this file.
1
11// Copyright 2015 Sensics, Inc.
12// Distributed under the Boost Software License, Version 1.0.
13// (See accompanying file LICENSE_1_0.txt or copy at
14// http://www.boost.org/LICENSE_1_0.txt)
15
16// Internal Includes
17#include "vrpn_Configure.h"
18
19// Library/third-party includes
20// - none
21
22// Standard includes
23#include <stdio.h>
24
25namespace vrpn {
26 // implementations based on ALL_ASSERT in vrpn_Shared.C
27 VRPN_API void assertion_failed(char const *expr, char const *function,
28 char const *file, long line)
29 {
30 fprintf(stderr,
31 "Assertion (%s) failed\n\tFunction: %s\n\tLocation: %s:%d\n\n",
32 expr, function, file, static_cast<int>(line));
33 }
34 VRPN_API void assertion_failed_msg(char const *expr, char const *msg,
35 char const *function, char const *file,
36 long line)
37 {
38
39 fprintf(stderr, "Assertion (%s) failed\n\tMessage: %s\n\tFunction: "
40 "%s\n\tLocation: %s:%d\n\n",
41 expr, msg, function, file, static_cast<int>(line));
42 }
43} // namespace vrpn
VRPN_API void assertion_failed(char const *expr, char const *function, char const *file, long line)
Definition: vrpn_Assert.C:27
VRPN_API void assertion_failed_msg(char const *expr, char const *msg, char const *function, char const *file, long line)
Definition: vrpn_Assert.C:34
#define VRPN_API