mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
idc.py: Implemented Compile()
This commit is contained in:
parent
18b7a6b0ad
commit
6b739548fc
@ -351,7 +351,23 @@ def Wait():
|
||||
|
||||
|
||||
def Compile(filename):
|
||||
raise DeprecatedIDCError, "Compile() is for IDC and unsupported."
|
||||
"""
|
||||
Compile an IDC file.
|
||||
|
||||
The file being compiled should not contain functions that are
|
||||
currently executing - otherwise the behaviour of the replaced
|
||||
functions is undefined.
|
||||
|
||||
@param filename: name of file to compile
|
||||
|
||||
@return: 0 - ok, otherwise it returns an error message
|
||||
"""
|
||||
res = idaapi.Compile(filename)
|
||||
|
||||
if res:
|
||||
return res
|
||||
else:
|
||||
return 0
|
||||
|
||||
|
||||
def Exit(code):
|
||||
|
Loading…
Reference in New Issue
Block a user