view erlang/erldc/include/dyncall.hrl @ 37:8c8f848131c6

- version bump - better doc - made calling convention mode reset by default, as only way to specify convention used is via signature string
author Tassilo Philipp
date Mon, 13 Apr 2020 20:08:54 +0200
parents 0cfcc391201f
children 3abd4f1ab473
line wrap: on
line source

%%  Copyright (c) 2014 Erik Mackdanz <erikmack@gmail.com>

%%  Permission to use, copy, modify, and distribute this software for any
%%  purpose with or without fee is hereby granted, provided that the above
%%  copyright notice and this permission notice appear in all copies.

%%  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
%%  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
%%  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
%%  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
%%  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
%%  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%%  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.          

-define(DC_CALL_C_DEFAULT,              0).
-define(DC_CALL_C_ELLIPSIS,           100).
-define(DC_CALL_C_ELLIPSIS_VARARGS,   101).
-define(DC_CALL_C_X86_CDECL,            1).
-define(DC_CALL_C_X86_WIN32_STD,        2).
-define(DC_CALL_C_X86_WIN32_FAST_MS,    3).
-define(DC_CALL_C_X86_WIN32_FAST_GNU,   4).
-define(DC_CALL_C_X86_WIN32_THIS_MS,    5).
-define(DC_CALL_C_X86_WIN32_THIS_GNU,   6).
-define(DC_CALL_C_X64_WIN64,            7).
-define(DC_CALL_C_X64_SYSV,             8).
-define(DC_CALL_C_PPC32_DARWIN,         9).
-define(DC_CALL_C_PPC32_OSX,           ?DC_CALL_C_PPC32_DARWIN).
-define(DC_CALL_C_ARM_ARM_EABI,        10).
-define(DC_CALL_C_ARM_THUMB_EABI,      11).
-define(DC_CALL_C_ARM_ARMHF,           30).
-define(DC_CALL_C_MIPS32_EABI,         12).
-define(DC_CALL_C_MIPS32_PSPSDK,       ?DC_CALL_C_MIPS32_EABI).
-define(DC_CALL_C_PPC32_SYSV,          13).
-define(DC_CALL_C_PPC32_LINUX,         ?DC_CALL_C_PPC32_SYSV).
-define(DC_CALL_C_ARM_ARM,             14).
-define(DC_CALL_C_ARM_THUMB,           15).
-define(DC_CALL_C_MIPS32_O32,          16).
-define(DC_CALL_C_MIPS64_N32,          17).
-define(DC_CALL_C_MIPS64_N64,          18).
-define(DC_CALL_C_X86_PLAN9,           19).
-define(DC_CALL_C_SPARC32,             20).
-define(DC_CALL_C_SPARC64,             21).
-define(DC_CALL_SYS_DEFAULT,          200).
-define(DC_CALL_SYS_X86_INT80H_LINUX, 201).
-define(DC_CALL_SYS_X86_INT80H_BSD,   202).

-define(DC_ERROR_NONE,               0).
-define(DC_ERROR_UNSUPPORTED_MODE,  -1).