UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RecastAssert.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
// Modified version of Recast/Detour's source file
3
4
//
5
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
6
//
7
// This software is provided 'as-is', without any express or implied
8
// warranty. In no event will the authors be held liable for any damages
9
// arising from the use of this software.
10
// Permission is granted to anyone to use this software for any purpose,
11
// including commercial applications, and to alter it and redistribute it
12
// freely, subject to the following restrictions:
13
// 1. The origin of this software must not be misrepresented; you must not
14
// claim that you wrote the original software. If you use this software
15
// in a product, an acknowledgment in the product documentation would be
16
// appreciated but is not required.
17
// 2. Altered source versions must be plainly marked as such, and must not be
18
// misrepresented as being the original software.
19
// 3. This notice may not be removed or altered from any source distribution.
20
//
21
22
#ifndef RECASTASSERT_H
23
#define RECASTASSERT_H
24
25
#include "
CoreMinimal.h
"
26
27
// Note: This header file's only purpose is to include define assert.
28
// Feel free to change the file and include your own implementation instead.
29
30
#ifdef NDEBUG
31
// From http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
32
# define rcAssert(x) do { (void)sizeof((x)); } while((void)(__LINE__==-1),false)
33
#else
34
# include <assert.h>
35
# define rcAssert(x) { assert(x); CA_ASSUME(x); } (void)0
36
#endif
37
38
#endif
// RECASTASSERT_H
CoreMinimal.h
Engine
Source
Runtime
Navmesh
Public
Recast
RecastAssert.h
Generated by
1.9.8