home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnat / examples / simple_cpp_interface.ads < prev    next >
Text File  |  2000-07-19  |  361b  |  16 lines

  1. package Simple_Cpp_Interface is
  2.    type A is limited
  3.       record
  4.          O_Value : Integer;
  5.          A_Value : Integer;
  6.       end record;
  7.    pragma Convention (C, A);
  8.  
  9.    procedure Method1 (This : in out A);
  10.    pragma Import (C, Method1);
  11.  
  12.    procedure Ada_Method2 (This : in out A; V : Integer);
  13.    pragma Export (C, Ada_Method2);
  14.  
  15. end Simple_Cpp_Interface;
  16.