src/pEpEngine.c
changeset 1777 a537bef47d07
parent 1764 e1c31ee55aad
child 1791 0253b2e1b8ff
child 1801 a04a47881059
     1.1 --- a/src/pEpEngine.c	Thu May 11 17:39:31 2017 +0200
     1.2 +++ b/src/pEpEngine.c	Fri May 12 10:39:17 2017 +0200
     1.3 @@ -2334,19 +2334,30 @@
     1.4      return session->errorstack;
     1.5  }
     1.6  
     1.7 +DYNAMIC_API void clear_errorstack(PEP_SESSION session)
     1.8 +{
     1.9 +    free_stringlist(session->errorstack);
    1.10 +    session->errorstack = new_stringlist(NULL);
    1.11 +}
    1.12 +
    1.13  #else
    1.14  
    1.15  static stringlist_t* dummy_errorstack = NULL;
    1.16  
    1.17  DYNAMIC_API const stringlist_t* get_errorstack(PEP_SESSION session)
    1.18  {
    1.19 -	if(dummy_errorstack == NULL)
    1.20 -	{
    1.21 -		dummy_errorstack = new_stringlist("( Please recompile pEpEngine with -DDEBUG_ERRORSTACK )");
    1.22 -	}
    1.23 -	
    1.24 +    if(dummy_errorstack == NULL)
    1.25 +    {
    1.26 +        dummy_errorstack = new_stringlist("( Please recompile pEpEngine with -DDEBUG_ERRORSTACK )");
    1.27 +    }
    1.28 +
    1.29      return dummy_errorstack;
    1.30  }
    1.31  
    1.32 +DYNAMIC_API void clear_errorstack(PEP_SESSION session)
    1.33 +{
    1.34 +    // nothing to do here
    1.35 +}
    1.36 +
    1.37  #endif
    1.38