no engine anymore

This commit is contained in:
2025-07-30 23:53:26 +03:00
parent 8a29e6b86f
commit 395ced9e28
159 changed files with 2767 additions and 9484 deletions

View File

@@ -1,21 +1,18 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: A header which implements or redefines libc implementation.
// It is defined with V_ prefix to differentiate own implementation from
// given libc by the OS.
//===========================================================================//
#ifndef TIER0_STDLIB_H
#define TIER0_STDLIB_H
#include "tier0/minmax.h"
#include "tier0/minmax_on.h"
#ifdef __APPLE__
#include "stdint.h"
#include "string.h"
#include "stdio.h"
#include "stdlib.h"
#else
#include "stdint.h"
#include "string.h"
#include "stdio.h"
#include "stdlib.h"
#endif
// TODO: bad stuff, reimplement it
//-----------------------------------------------------------------------------
// string.h

View File

@@ -1,3 +1,8 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: A memory allocator for C and C++.
// For now it uses libc but it is possible to use own allocators
//===========================================================================//
#ifndef TIER0_MEM_H
#define TIER0_MEM_H
@@ -7,4 +12,9 @@
PLATFORM_INTERFACE void *V_malloc( int nSize );
PLATFORM_INTERFACE void V_free( void *pMem );
PLATFORM_INTERFACE void *V_realloc( void *pMem, int nSize );
#endif
void *operator new( size_t nCount );
void *operator new ( size_t nCount, void *pPtr );
void operator delete( void *pMem ) noexcept;
#endif

View File

@@ -1,8 +0,0 @@
#ifdef min
#undef min
#undef max
#endif
#define max(x, y) (((x) > (y)) ? (x) : (y))
#define min(x, y) (((x) < (y)) ? (x) : (y))

View File

@@ -1,3 +1,8 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: Disables min and max. Used for C++ interoperability
//===========================================================================//
#ifdef min
#undef min
#undef max

8
public/tier0/minmax_on.h Normal file
View File

@@ -0,0 +1,8 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: Enables min and max. Used for C++ interoperability
//===========================================================================//
#include "minmax_off.h"
#define max(x, y) (((x) > (y)) ? (x) : (y))
#define min(x, y) (((x) < (y)) ? (x) : (y))

View File

@@ -1,8 +1,11 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose:
//===========================================================================//
#ifndef TIER0_NETWORK_H
#define TIER0_NETWORK_H
#include "platform.h"
#include "steam/isteamnetworkingsockets.h"
#ifdef __linux__
#include "arpa/inet.h"
#endif

View File

@@ -1,3 +1,8 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: Multi-platform implementation of some of the functions which
// are provided by each OS differently.
//===========================================================================//
#ifndef TIER0_PLATFORM_H
#define TIER0_PLATFORM_H
@@ -45,7 +50,6 @@
#endif
#define interface class
#define abstract_class class
PLATFORM_INTERFACE void Plat_FatalErrorFunc( const char *szFormat, ... );