/* * Copyright (C) 1995 Christopher D. Granz * All rights reserved * * This is an Emerald source file. * * Since the Emerald Compiler (emc) is not included in this version of * Sapphire you will not be able to compile this code. The files * `db/abi/test.abi' and `db/abi/test2.abi', when compiled with abic, * will produce two Emerald object files that are the same as what would * be produced if this code was compiled with emc. */ /* * Uses: ione_arg(), iadd_game_cmd(), iwrite_to_char(). */ main( ) { iadd_game_cmd( cmd_testem, "TestEm", 1, 0, 0, 1 ); } cmd_testem( object oChar, string sArgs ) { string { sRemain, sArg } = ione_arg( sArgs ); iwrite_to_char( oChar, "Command invoked. Arg: " ); iwrite_to_char( oChar, sArg ); iwrite_to_char( oChar, "\n\r" ); } /* * End of test.em */