Added new API mono_runtime_set_main_args() and fixed CommandLine for embedders.
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 25 Feb 2014 16:25:24 +0000 (17:25 +0100)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 25 Feb 2014 16:43:08 +0000 (17:43 +0100)
commit57ade9dfca648f4970d4c48ebd96d1a02be9e975
tree473210e7fc8096ebb8dedabc8c2dc5a7be133b89
parenta871be78267ebec5044e3c6c3a3af7890da87296
Added new API mono_runtime_set_main_args() and fixed CommandLine for embedders.

The new API allows to set the program arguments from embedders that don't call
mono_jit_exec() and related functions that set them automatically. This change
also fixes the NullRef exception that would happen if the arguments are not set.
mono/metadata/object.c
mono/metadata/object.h