gambas-source-code/main/gbx/gbx_info.h
Benoît Minisini 0ab71b28bf [INTERPRETER]
* OPT: Don't use glibc memcmp() to compare strings. My own routine is a 
  little faster according to valgrind.
* OPT: The UTF-8 String class routines Left(), Mid() and Right() have been 
  optimized. The positions of the first 256 characters of the last string 
  processed by the String class are cached.
* OPT: Some native methods can be called like any other native subroutines.
  But that can be used only inside the interpreter, not in a component.
* OPT: The '&' operator is faster now when it takes two arguments only (the
  most frequent case).


git-svn-id: svn://localhost/gambas/trunk@4106 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 16:01:36 +00:00

70 lines
2.2 KiB
C

/***************************************************************************
gbx_info.h
(c) 2000-2011 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., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#ifndef __GBX_INFO_H
#define __GBX_INFO_H
#include "gb_common.h"
#include "gambas.h"
#ifdef GBX_INFO
#undef GB_DECLARE
#define GB_DECLARE(name, size) { name, (intptr_t)GB_VERSION, 0 }
#undef GB_HOOK_NEW
#define GB_HOOK_NEW(hook) { GB_HOOK_NEW_ID, 0 }
#undef GB_HOOK_FREE
#define GB_HOOK_FREE(hook) { GB_HOOK_FREE_ID, 0 }
#undef GB_HOOK_CHECK
#define GB_HOOK_CHECK(hook) { GB_HOOK_CHECK_ID, 0 }
#undef GB_PROPERTY
#define GB_PROPERTY(symbol, type, proc) { "p" symbol, (intptr_t)type, 0 }
#undef GB_PROPERTY_READ
#define GB_PROPERTY_READ(symbol, type, proc) { "r" symbol, (intptr_t)type, 0 }
#undef GB_METHOD
#define GB_METHOD(symbol, type, exec, signature) { "m" symbol, (intptr_t)type, 0, (intptr_t)signature }
#undef GB_EVENT
#define GB_EVENT(symbol, type, signature, id) { "::" symbol, (intptr_t)type, 0, (intptr_t)signature }
#undef GB_STATIC_PROPERTY
#define GB_STATIC_PROPERTY(symbol, type, proc) { "P" symbol, (intptr_t)type, 0 }
#undef GB_STATIC_PROPERTY_READ
#define GB_STATIC_PROPERTY_READ(symbol, type, proc) { "R" symbol, (intptr_t)type, 0 }
#undef GB_STATIC_METHOD
#define GB_STATIC_METHOD(symbol, type, exec, signature) { "M" symbol, (intptr_t)type, 0, (intptr_t)signature }
#undef GB_STATIC_FAST_METHOD
#define GB_STATIC_FAST_METHOD(symbol, type, exec, signature) { "M" symbol, (intptr_t)type, 0, (intptr_t)signature }
#endif
#endif