From 29c125e51df8e66b08c74a117ef47df497a097cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Terziman?= Date: Thu, 21 Nov 2013 12:22:23 +0100 Subject: [PATCH] Minor improvement of ParsingUtils --- code/ParsingUtils.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ParsingUtils.h b/code/ParsingUtils.h index 5f2746455..422471fc8 100644 --- a/code/ParsingUtils.h +++ b/code/ParsingUtils.h @@ -115,7 +115,7 @@ AI_FORCE_INLINE bool SkipSpaces( const char_t** inout) } // --------------------------------------------------------------------------------- template -inline bool SkipLine( const char_t* in, const char_t** out) +AI_FORCE_INLINE bool SkipLine( const char_t* in, const char_t** out) { while (*in != (char_t)'\r' && *in != (char_t)'\n' && *in != (char_t)'\0')in++; @@ -126,13 +126,13 @@ inline bool SkipLine( const char_t* in, const char_t** out) } // --------------------------------------------------------------------------------- template -inline bool SkipLine( const char_t** inout) +AI_FORCE_INLINE bool SkipLine( const char_t** inout) { return SkipLine(*inout,inout); } // --------------------------------------------------------------------------------- template -inline bool SkipSpacesAndLineEnd( const char_t* in, const char_t** out) +AI_FORCE_INLINE bool SkipSpacesAndLineEnd( const char_t* in, const char_t** out) { while (*in == (char_t)' ' || *in == (char_t)'\t' || *in == (char_t)'\r' || *in == (char_t)'\n')in++; @@ -141,13 +141,13 @@ inline bool SkipSpacesAndLineEnd( const char_t* in, const char_t** out) } // --------------------------------------------------------------------------------- template -inline bool SkipSpacesAndLineEnd( const char_t** inout) +AI_FORCE_INLINE bool SkipSpacesAndLineEnd( const char_t** inout) { return SkipSpacesAndLineEnd(*inout,inout); } // --------------------------------------------------------------------------------- template -inline bool GetNextLine(const char_t*& buffer, char_t out[4096]) +AI_FORCE_INLINE bool GetNextLine(const char_t*& buffer, char_t out[4096]) { if ((char_t)'\0' == *buffer)return false;