This website works better with JavaScript.
Home
Help
Register
Sign In
Bastien
/
Dames-Chinoises
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
ia_call_function, vérification que « player » est bien une stratégie.
master
Bastien
8 years ago
committed by
Squiz
parent
dc5d4cb45f
commit
3df2dcb038
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
main.c
+ 6
- 0
main.c
View File
@ -37,6 +37,12 @@ enum bool ia_call_function(const struct player_t player, enum api_function_t api
void
(
*
ia_function_pf
)
(
)
;
int
a
;
enum
hole_t
b
;
void
*
c
,
*
d
;
if
(
!
player
.
ia_lib_p
)
{
#
ifdef debug
fputs
(
"
the player is not a strategy.
\n
"
,
stderr
)
;
#
endif
return
false
;
}
va_start
(
ap
,
result
)
;
switch
(
api_function
)
{
case
ia_lib_init
:
Write
Preview
Loading…
Cancel
Save