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

     1  /*
     2   * jit-arch-generic.h - Architecture-specific definitions.
     3   *
     4   * Copyright (C) 2006  Southern Storm Software, Pty Ltd.
     5   *
     6   * This file is part of the libjit library.
     7   *
     8   * The libjit library is free software: you can redistribute it and/or
     9   * modify it under the terms of the GNU Lesser General Public License
    10   * as published by the Free Software Foundation, either version 2.1 of
    11   * the License, or (at your option) any later version.
    12   *
    13   * The libjit library is distributed in the hope that it will be useful,
    14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    16   * Lesser General Public License for more details.
    17   *
    18   * You should have received a copy of the GNU Lesser General Public
    19   * License along with the libjit library.  If not, see
    20   * <http://www.gnu.org/licenses/>.
    21   */
    22  
    23  #ifndef	_JIT_ARCH_GENERIC_H
    24  #define	_JIT_ARCH_GENERIC_H
    25  
    26  /*
    27   * If defined _JIT_ARCH_GET_CURRENT_FRAME() macro assigns the current frame
    28   * pointer to the supplied argument that has to be a void pointer.
    29   */
    30  #undef _JIT_ARCH_GET_CURRENT_FRAME
    31  
    32  /*
    33   * If defined _JIT_ARCH_GET_NEXT_FRAME() assigns the frame address following
    34   * the frame supplied as second arg to the value supplied as first argument.
    35   */
    36  #undef _JIT_ARCH_GET_NEXT_FRAME
    37  
    38  /*
    39   * If defined _JIT_ARCH_GET_RETURN_ADDRESS() assigns the return address of
    40   * the frame supplied as second arg to the value supplied as first argument.
    41   */
    42  #undef _JIT_ARCH_GET_RETURN_ADDRESS
    43  
    44  /*
    45   * If defined _JIT_ARCH_GET_CURRENT_RETURN() assigns the return address of
    46   * the current to the supplied argument.
    47   */
    48  #define _JIT_ARCH_GET_CURRENT_RETURN
    49  
    50  #endif /* _JIT_ARCH_GENERIC_H */