Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
[ROZWIĄZANE] funkcja exit
Najlepsza odpowiedź DarkGL , 26.10.2013 13:24
Z tego co pamiętam to w C++ jest jakimś mniej optymalnym odpowiednikiem return
Nie.
http://www.cplusplus...e/cstdlib/exit/
Co do exit
exit expression Abort the program. The expression is optional, but it must start on the same line as the exit statement if it is present. The exit instruction returns the expression value (plus the expression tag) to the host application, or zero if no exit expression is present. The significance and purpose of exit codes is implementation defined.Przejdź do postu
#1
Napisano 26.10.2013 09:38
Nowa wersja Tower Defense 0.2 Alpha | Inne Mody -> Nowości
#3
Napisano 26.10.2013 13:24 Najlepsza odpowiedź
Z tego co pamiętam to w C++ jest jakimś mniej optymalnym odpowiednikiem return
Nie.
http://www.cplusplus...e/cstdlib/exit/
Co do exit
exit expression Abort the program. The expression is optional, but it must start on the same line as the exit statement if it is present. The exit instruction returns the expression value (plus the expression tag) to the host application, or zero if no exit expression is present. The significance and purpose of exit codes is implementation defined.
#4
Napisano 26.10.2013 13:30
Nowa wersja Tower Defense 0.2 Alpha | Inne Mody -> Nowości
#5
Napisano 26.10.2013 13:37
A nie możesz tego po prostu sprawdzić ?
Kod się kompiluje op cody wydają się ok sama obsługa halt jest w maszynie wirtualnej zaimplementowana
op_halt: GETPARAM(offs); if (retval!=NULL) *retval=pri; /* store complete status (stk and hea are already set in the ABORT macro) */ amx->frm=frm; amx->pri=pri; amx->alt=alt; amx->cip=(cell)((unsigned char*)cip-code); if (offs==AMX_ERR_SLEEP) { amx->reset_stk=reset_stk; amx->reset_hea=reset_hea; return (int)offs; } /* if */ ABORT(amx,(int)offs);
#6
Napisano 26.10.2013 13:54
Nowa wersja Tower Defense 0.2 Alpha | Inne Mody -> Nowości
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych