github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/include/jit/jit-init.h (about)

     1  /*
     2   * jit-init.h - Initialization routines for the JIT.
     3   *
     4   * Copyright (C) 2004  Southern Storm Software, Pty Ltd.
     5   *
     6   * The libjit library is free software: you can redistribute it and/or
     7   * modify it under the terms of the GNU Lesser General Public License
     8   * as published by the Free Software Foundation, either version 2.1 of
     9   * the License, or (at your option) any later version.
    10   *
    11   * The libjit library is distributed in the hope that it will be useful,
    12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    14   * Lesser General Public License for more details.
    15   *
    16   * You should have received a copy of the GNU Lesser General Public
    17   * License along with the libjit library.  If not, see
    18   * <http://www.gnu.org/licenses/>.
    19   */
    20  
    21  #ifndef	_JIT_INIT_H
    22  #define	_JIT_INIT_H
    23  
    24  #include <jit/jit-defs.h>
    25  
    26  #ifdef	__cplusplus
    27  extern	"C" {
    28  #endif
    29  
    30  void jit_init(void) JIT_NOTHROW;
    31  
    32  int jit_uses_interpreter(void) JIT_NOTHROW;
    33  
    34  int jit_supports_threads(void) JIT_NOTHROW;
    35  
    36  int jit_supports_virtual_memory(void) JIT_NOTHROW;
    37  
    38  int jit_supports_closures(void);
    39  
    40  unsigned int jit_get_closure_size(void);
    41  unsigned int jit_get_closure_alignment(void);
    42  unsigned int jit_get_trampoline_size(void);
    43  unsigned int jit_get_trampoline_alignment(void);
    44  
    45  #ifdef	__cplusplus
    46  };
    47  #endif
    48  
    49  #endif /* _JIT_INIT_H */