medfall

A super great game engine
Log | Files | Refs

commit f846379a81647e92ccd5a6cc12f3a395cb9b0343
parent 6f8b3db0e8fab058d2d3c0e1a3c4717847242e18
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed, 28 Nov 2018 21:17:33 +0200

inline exec_and_quit

Diffstat:
unix_exec.h | 2+-
win32_exec.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unix_exec.h b/unix_exec.h @@ -4,7 +4,7 @@ #include "log.h" -void exec_and_quit( const char * path ) { +inline void exec_and_quit( const char * path ) { execl( path, path, ( char * ) 0 ); FATAL( "execl" ); } diff --git a/win32_exec.h b/win32_exec.h @@ -9,7 +9,7 @@ #pragma warning( disable : 4302 ) #pragma warning( disable : 4311 ) -void exec_and_quit( const char * path, char * command_line = NULL ) { +inline void exec_and_quit( const char * path, char * command_line = NULL ) { int ok = int( ShellExecute( NULL, "runas", path, command_line, NULL, SW_SHOWDEFAULT ) ); if( ok == SE_ERR_ACCESSDENIED ) return;