gambas-source-code/main/gbx/gbx_c_timer.h
Benoît Minisini 2b432beca0 [DEVELOPMENT ENVIRONMENT]
* BUG: Error raised inside form generated code are correctly displayed 
  again.

[INTERPRETER]
* NEW: The GB.Every() API now takes a pointer argument that will be passed
  to the callback.


git-svn-id: svn://localhost/gambas/trunk@3430 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-01-02 18:24:50 +00:00

44 lines
1.2 KiB
C

/***************************************************************************
gbx_c_timer.h
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
***************************************************************************/
#ifndef __GBX_C_TIMER_H
#define __GBX_C_TIMER_H
#include "gambas.h"
#include "gbx_variant.h"
#include "gb_list.h"
typedef
GB_TIMER CTIMER;
#ifndef __GBX_C_TIMER_C
extern GB_DESC NATIVE_Timer[];
#else
#define THIS ((CTIMER *)_object)
#endif
void CTIMER_raise(void *_object);
CTIMER *CTIMER_every(int delay, GB_TIMER_CALLBACK callback, intptr_t param);
#endif