Skip to content

Commit

Permalink
24.9.13
Browse files Browse the repository at this point in the history
[Engine]
* Remove all *LTRBA API functions. Use *LTWHA instead as the prior isn't meaningful anymore.
* Clean-ups.

[Assets]
* Update refdoc to reflect API changes.
  • Loading branch information
Mhatxotic committed Sep 12, 2024
1 parent dff0c86 commit b4bcae1
Show file tree
Hide file tree
Showing 84 changed files with 376 additions and 574 deletions.
122 changes: 29 additions & 93 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ CTOR_MEM_BEGIN_ASYNC_CSLAVE(Archives, Archive, ICHelperUnsafe),
cLog->LogInfoExSafe("Archive unloaded '$' successfully.", IdentGet());
}
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Archive) // Supress copy constructor for safety
DELETECOPYCTORS(Archive) // Suppress default functions for safety
/* -- Done with these defines -------------------------------------------- */
#undef LZMAGetHandle // Done with this macro
#undef LZMAOpen // Done with this macro
Expand Down
2 changes: 1 addition & 1 deletion src/asset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ CTOR_MEM_BEGIN_ASYNC_CSLAVE(Assets, Asset, ICHelperUnsafe),
/* -- Destructor --------------------------------------------------------- */
~Asset(void) { AsyncCancel(); }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Asset) // Disable copy constructor and operator
DELETECOPYCTORS(Asset) // Suppress default functions for safety
};/* ======================================================================= */
CTOR_END_ASYNC_NOFUNCS(Assets, Asset, ASSET, ASSET, bOverride(false));
/* -- Class to help enumerate files ---------------------------------------- */
Expand Down
4 changes: 2 additions & 2 deletions src/async.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ template<class MemberType, class ColType>class AsyncLoader :
AsyncStop();
}
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(AsyncLoader) // Disable copy constructor
DELETECOPYCTORS(AsyncLoader) // Suppress default functions for safety
};/* -- Function to wait for async of all members in a collector ----------- */
template<class MemberType,
class LockType,
Expand Down Expand Up @@ -648,7 +648,7 @@ class CLHelperAsync :
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CLHelperAsync) // Supress copy constructor for safety
DELETECOPYCTORS(CLHelperAsync) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
} // End of public module namespace
/* ------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/audio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static class Audio final : // Audio manager class
/* -- Destructor --------------------------------------------------------- */
DTORHELPER(~Audio, DeInit()) // Destructor helper
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Audio) // Omit copy constructor for safety
DELETECOPYCTORS(Audio) // Suppress default functions for safety
/* ----------------------------------------------------------------------- */
CVarReturn SetAudCheckRate(const unsigned int uiTime)
{ return CVarSimpleSetIntNLG(cdCheckRate,
Expand Down
6 changes: 3 additions & 3 deletions src/cert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Certs // Certificates store
/* -- Destructor/Constructor ------------------------------------------- */
LoadSerialised(void) { } // Constructor not used
/* --------------------------------------------------------------------- */
DELETECOPYCTORS(LoadSerialised) // Disable copy constructor and operator
DELETECOPYCTORS(LoadSerialised) // Suppress default functions for safety
};/* -- Class to load certificates in parallel --------------------------- */
class LoadParallel // Parallel certificate installation
{ /* --------------------------------------------------------------------- */
Expand All @@ -51,7 +51,7 @@ class Certs // Certificates store
~LoadParallel(void) { if(bLocked) UnlockFunction(); }
LoadParallel(void) : bLocked(false) { }
/* --------------------------------------------------------------------- */
DELETECOPYCTORS(LoadParallel) // Disable copy constructor and operator
DELETECOPYCTORS(LoadParallel) // Suppress default functions for safety
};/* -- Variables -------------------------------------------------------- */
SSL_CTX *scStore; // Context used for cerificate store
X509_STORE *xsCerts; // Certificate store inside OpenSSL
Expand Down Expand Up @@ -303,7 +303,7 @@ class Certs // Certificates store
/* -- Destructor that unloads all x509 certificates ---------------------- */
~Certs(void) { CertsEmpty(); }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Certs) // Disable copy constructor and operator
DELETECOPYCTORS(Certs) // Suppress default functions for safety
/* --------------------------------------------------------------- */ public:
CVarReturn CertsSetBypassFlags1(const uint64_t uiFlags)
{ return CVarSimpleSetInt(qCertBypass.front(), uiFlags); }
Expand Down
2 changes: 1 addition & 1 deletion src/cmdline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static struct CmdLine final // Members initially public
} // Parent process should be exiting cleanly after returning here
DTORHELPEREND(~CmdLine)
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CmdLine) // Remove default functions
DELETECOPYCTORS(CmdLine) // Suppress default functions for safety
/* -- End ---------------------------------------------------------------- */
} *cCmdLine = nullptr; // Pointer to static class
/* ------------------------------------------------------------------------- */
Expand Down
6 changes: 3 additions & 3 deletions src/codec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class CoDecoder : // Magic decoder derivative class
default: XC("Invalid version!", "Version", uiVersionActual);
}
} /* --------------------------------------------------------------------- */
DELETECOPYCTORS(CoDecoder) // Omit copy constructor for safety
DELETECOPYCTORS(CoDecoder) // Suppress default functions for safety
};/* == Encoder base class ================================================= */
template<class EncPlugin>class CoEncoder :
/* -- Base classes ------------------------------------------------------- */
Expand Down Expand Up @@ -508,7 +508,7 @@ template<class EncPlugin>class CoEncoder :
/* -- Code ------------------------------------------------------------- */
{ InitHeader(); }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CoEncoder) // Omit copy constructor for safety
DELETECOPYCTORS(CoEncoder) // Suppress default functions for safety
};/* ======================================================================= **
** ######################################################################### **
** ## Encoder helpers ## **
Expand Down Expand Up @@ -564,7 +564,7 @@ template<class EncoderType>class Block final : public EncoderType
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Block) // Omit copy constructor for safety
DELETECOPYCTORS(Block) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
} // End of public module namespace
/* ------------------------------------------------------------------------- */
Expand Down
24 changes: 12 additions & 12 deletions src/collect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LuaIdent {
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(LuaIdent) // Don't need the copy constructor
DELETECOPYCTORS(LuaIdent) // Suppress default functions for safety
};/* -- Collector header --------------------------------------------------- */
#define CTOR_HDR_BEGIN(p, /* The parent (collector) class type */\
m, /* The member class type */\
Expand All @@ -58,7 +58,7 @@ class LuaIdent {
public LuaIdent, /* Name of object for Lua */\
public hn /* Derived by our collector class */\
__VA_ARGS__ /* Any other custom class derives */\
{ DELETECOPYCTORS(p) /* Remove default functions */\
{ DELETECOPYCTORS(p) /* Suppress copy constructor */\
p(void); /* Constructor prototype */\
~p(void) noexcept(false); /* Destructor prototype */\
x /* Any extra variables? (no comma!) */
Expand Down Expand Up @@ -200,7 +200,7 @@ class IHelper : // The Init Helper class
/* -- No code ---------------------------------------------------------- */
{ }
/* -- Default suppressions ----------------------------------------------- */
DELETECOPYCTORS(IHelper) // Remove copy ctor/assign oper
DELETECOPYCTORS(IHelper) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
/* == Collector class helper =============================================== **
** ######################################################################### **
Expand Down Expand Up @@ -259,7 +259,7 @@ class CLHelperBase :
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CLHelperBase) // Don't need the copy constructor
DELETECOPYCTORS(CLHelperBase) // Suppress default functions for safety
/* -- Set limit ---------------------------------------------------------- */
CVarReturn CLBaseSetLimitUnsafe(const size_t stLimit)
{ return CVarSimpleSetInt(stMaximum, stLimit); }
Expand Down Expand Up @@ -302,7 +302,7 @@ class CLHelperSafe :
/* -- Destructor --------------------------------------------------------- */
~CLHelperSafe(void) { }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CLHelperSafe) // Don't need the copy constructor
DELETECOPYCTORS(CLHelperSafe) // Suppress default functions for safety
/* -- Return the mutex ------------------------------------------- */ public:
mutex &CollectorGetMutex(void) { return *this; }
/* -- Lock the mutex and return the removed iterator --------------------- */
Expand Down Expand Up @@ -338,7 +338,7 @@ class CLHelperUnsafe : // Members initially private
/* -- Destructor --------------------------------------------------------- */
~CLHelperUnsafe(void) { }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CLHelperUnsafe) // Don't need the copy constructor
DELETECOPYCTORS(CLHelperUnsafe) // Suppress default functions for safety
/* -- Set maximum objects ------------------------------------------------ */
CVarReturn CLSetLimit(const size_t stLimit)
{ return this->CLBaseSetLimitUnsafe(stLimit); }
Expand Down Expand Up @@ -382,7 +382,7 @@ struct CLHelper : // Members initially public
/* -- Destructor --------------------------------------------------------- */
~CLHelper(void) { this->CLBaseCheckAndDestroyUnsafe(); }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CLHelper) // Don't need the copy constructor
DELETECOPYCTORS(CLHelper) // Suppress default functions for safety
/* -- Set maximum objects ------------------------------------------------ */
CVarReturn CollectorSetLimit(const size_t stLimit)
{ return this->CLSetLimit(stLimit); }
Expand Down Expand Up @@ -471,7 +471,7 @@ struct ICHelperBase // Members initially public
/* ----------------------------------------------------------------------- */
~ICHelperBase(void) { }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(ICHelperBase) // Remove default functions
DELETECOPYCTORS(ICHelperBase) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
/* == Collector class helper WITH locks ==================================== **
** ######################################################################### **
Expand Down Expand Up @@ -511,7 +511,7 @@ class ICHelperSafe : // Members initially private
explicit ICHelperSafe(CollectorType*const ctPtr, MemberType*const mtPtr) :
BaseType(ctPtr, StdMove(ICHelperInit(ctPtr, mtPtr))) { }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(ICHelperSafe) // Remove default functions
DELETECOPYCTORS(ICHelperSafe) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
/* == Collector class helper without locks ================================= **
** ######################################################################### **
Expand Down Expand Up @@ -551,7 +551,7 @@ class ICHelperUnsafe : // Members initially private
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(ICHelperUnsafe) // Remove default functions
DELETECOPYCTORS(ICHelperUnsafe) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
/* == Collector class ====================================================== **
** ######################################################################### **
Expand Down Expand Up @@ -597,7 +597,7 @@ struct ICHelper : // Members initially public
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(ICHelper) // Remove default functions
DELETECOPYCTORS(ICHelper) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
/* == Lua userdata helper ================================================== **
** ######################################################################### **
Expand Down Expand Up @@ -628,7 +628,7 @@ class Lockable // Members initially private
/* -- No code ---------------------------------------------------------- */
{ }
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Lockable) // Remove default functions
DELETECOPYCTORS(Lockable) // Suppress default functions for safety
};/* -- End ---------------------------------------------------------------- */
}; // End of private module namespace
/* ------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/congraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static class ConGraphics final : // Members initially private
/* -- Destructor --------------------------------------------------------- */
DTORHELPER(~ConGraphics, DeInit())
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(ConGraphics) // Disable copy constructor and operator
DELETECOPYCTORS(ConGraphics) // Suppress default functions for safety
/* -- Set console background colour -------------------------------------- */
CVarReturn TextBackgroundColourModified(const uint32_t ulNewColour)
{ return CVarSimpleSetInt(ulBgColour, ulNewColour); }
Expand Down
2 changes: 1 addition & 1 deletion src/console.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ static class Console final : // Members initially private
/* -- Destructor --------------------------------------------------------- */
DTORHELPER(~Console, DeInit())
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Console) // Disable copy constructor and operator
DELETECOPYCTORS(Console) // Suppress default functions for safety
/* -- Set page move count ------------------------------------------------ */
CVarReturn SetPageMoveCount(const ssize_t sstAmount)
{ // Deny if invalid value
Expand Down
2 changes: 1 addition & 1 deletion src/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ class Core final : // Members initially private
/* -- Destructor that clears the core pointer ---------------------------- */
DTORHELPER(~Core, cCore = nullptr)
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(Core) // Disable copy constructor and operator
DELETECOPYCTORS(Core) // Suppress default functions for safety
/* -- Set lua error mode behaviour --------------------------------------- */
CVarReturn CoreErrorBehaviourModified(const CoreErrorFlags cefNMode)
{ return CVarSimpleSetIntNGE(cefMode, cefNMode, CEF_MAX); }
Expand Down
2 changes: 1 addition & 1 deletion src/crypt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ static class Crypt final :
// Done
DTORHELPEREND(~Crypt)
/* -- Macros ---------------------------------------------------- */ private:
DELETECOPYCTORS(Crypt) // Do not need defaults
DELETECOPYCTORS(Crypt) // Suppress default functions for safety
/* ----------------------------------------------------------------------- */
} *cCrypt = nullptr; // Pointer to static class
/* -- URL decode the specified string -------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/cvar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ class CVarItem : // Members initially private
/* -- No code ---------------------------------------------------------- */
{ }
/* -- Other -------------------------------------------------------------- */
DELETECOPYCTORS(CVarItem) // No copy constructor
DELETECOPYCTORS(CVarItem) // Suppress default functions for safety
};/* ----------------------------------------------------------------------- */
} // End of public module namespace
/* ------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/cvars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ static struct CVars final : // Start of vars class
/* -- Destructor --------------------------------------------------------- */
DTORHELPER(~CVars, DeInit()) // Save and clean-up all variables
/* ----------------------------------------------------------------------- */
DELETECOPYCTORS(CVars) // Disable copy constructor and operator
DELETECOPYCTORS(CVars) // Suppress default functions for safety
/* ----------------------------------------------------------------------- */
CVarReturn SetDefaults(const CVarDefaults cvdVal)
{ // Compare defaults setting
Expand Down
Loading

0 comments on commit b4bcae1

Please sign in to comment.