VR-Engage
2.2
Loading...
Searching...
No Matches
assert_str.h
Go to the documentation of this file.
1
/*********************************************************************************
2
** Copyright (c) 2025 MAK Technologies
3
** All rights reserved.
4
*********************************************************************************/
5
6
#pragma once
7
8
//! \file assert_str.h
9
//! \brief Provides string-based assertion functionality for error handling
10
11
#include "
vreUtil/export.h
"
12
#include "
vreUtil/assert.h
"
13
14
#include <string>
15
16
namespace
makVre
17
{
18
//! \brief Custom assertion function that supports string-based error messages
19
//!
20
//! This function provides a mechanism for runtime assertions with detailed string messages.
21
//! It evaluates the condition and, if false, triggers appropriate error handling.
22
//!
23
//! \param condition The boolean condition to evaluate
24
//! \param file The source file where the assertion occurred
25
//! \param function The function name where the assertion occurred
26
//! \param line The line number where the assertion occurred
27
//! \param expression The string representation of the expression being evaluated
28
//! \param message The detailed error message explaining the assertion failure
29
//! \param handled Pointer to boolean that will be set to true if the assertion was handled
30
//! \return false if the assertion failed, true otherwise
31
UTIL_DLL
bool
customAssert
(
bool
condition,
const
char
* file,
const
std::string& function,
int
line,
32
const
char
* expression,
const
char
* message,
bool
* handled);
33
}
// namespace makVre
assert.h
Provides assertion macros and functions for error detection and handling.
export.h
Defines export macros for the VREngage Utility library.
UTIL_DLL
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition
export.h:39
makVre
Include export definitions for this library.
Definition
glsVreMessageUtil.h:49
makVre::customAssert
UTIL_DLL bool customAssert(bool condition, const char *expression, const char *description, int line, const char *file, const char *function, bool *handled)
Custom assertion function that evaluates conditions and handles failures.
Generated on 2026-01-13 from SVN revision 282860 - Copyright © 2005-2026 MAK Technologies. All Rights Reserved.