-almost every funtion is marked as @nogc and nothrow (only problem with HashMap)

This commit is contained in:
Mergul 2018-11-02 16:36:38 +01:00
parent fef55bd790
commit 204ce9dc79
10 changed files with 74 additions and 72 deletions

View file

@ -12,7 +12,7 @@ struct System
/************************************************************************************************************************
*Check if system is enabled.
*/
export bool enabled()
export bool enabled() nothrow @nogc
{
return m_enabled;
}
@ -20,27 +20,27 @@ struct System
/************************************************************************************************************************
*Enable system. If actually it is enabled function do nothing.
*/
export void enable()
export void enable() nothrow @nogc
{
if (!m_enabled && m_enable)
(cast(void function(void*))m_enable)(m_system_pointer);
(cast(void function(void*) nothrow @nogc)m_enable)(m_system_pointer);
m_enabled = true;
}
/************************************************************************************************************************
*Disable system. If actually it is disabled function do nothing.
*/
export void disable()
export void disable() nothrow @nogc
{
if (m_enabled && m_disable)
(cast(void function(void*))m_disable)(m_system_pointer);
(cast(void function(void*) nothrow @nogc)m_disable)(m_system_pointer);
m_enabled = false;
}
/************************************************************************************************************************
*Get system priority.
*/
export int priority()
export int priority() nothrow @nogc
{
return m_priority;
}
@ -48,7 +48,7 @@ struct System
/************************************************************************************************************************
*Get system priority.
*/
export bool execute()
export bool execute() nothrow @nogc
{
return m_execute;
}
@ -56,7 +56,7 @@ struct System
/************************************************************************************************************************
*Get system priority.
*/
export ushort id()
export ushort id() nothrow @nogc
{
return m_id;
}