note description: "Calling conventions constants" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class ECOM_CALL_CONV feature -- Access Cc_fastcall: INTEGER -- Fastcall calling convention (arguments to -- functions are to be passed in registers, when -- possible) -- Microsoft specific. external "C [macro ]" alias "CC_FASTCALL" end Cc_cdecl: INTEGER -- C calling convention (caller pushes -- parameters on stack, in reverse order, -- caller cleans up stack) external "C [macro ]" alias "CC_CDECL" end Cc_pascal: INTEGER -- Pascal calling convention (caller pushes -- parameters on stack, in reverse order, -- caller cleans up stack) external "C [macro ]" alias "CC_PASCAL" end Cc_macpascal: INTEGER -- Mac Pascal calling convention external "C [macro ]" alias "CC_MACPASCAL" end Cc_stdcall: INTEGER -- Stdcall calling convention (callee pushes -- parameters on stack, in reverse order, -- callee cleans up stack). external "C [macro ]" alias "CC_STDCALL" end Cc_fpfastcall: INTEGER -- Fpfastcall calling convention ( external "C [macro ]" alias "CC_FPFASTCALL" end Cc_syscall: INTEGER -- Syscall calling convention external "C [macro ]" alias "CC_SYSCALL" end Cc_mpwcdecl: INTEGER -- Mpwcdecl calling convention external "C [macro ]" alias "CC_MPWCDECL" end Cc_mpwpascal: INTEGER -- Mpwpascal calling convention external "C [macro ]" alias "CC_MPWPASCAL" end Cc_max: INTEGER -- Max calling convention external "C [macro ]" alias "CC_MAX" end feature -- Status report is_valid_callconv (cc: INTEGER): BOOLEAN -- Is `cc' a valid calling convention? do Result := cc = Cc_fastcall or cc = Cc_cdecl or cc = Cc_pascal or cc = Cc_macpascal or cc = Cc_stdcall or cc = Cc_fpfastcall or cc = Cc_syscall or cc = Cc_mpwcdecl or cc = Cc_mpwpascal or cc = Cc_max end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment 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, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment 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 Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class ECOM_CALL_CONV