Bytecode: change interface of function called from bytecode MEX

master
Sébastien Villemot 2023-01-09 14:09:09 +01:00
parent ec3ce156b4
commit a4f299c0b7
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -1178,12 +1178,12 @@ public:
return code;
};
instructions_list_t
get_op_code(string file_name)
get_op_code(const filesystem::path &codfile)
{
instructions_list_t tags_liste;
ifstream CompiledCode;
streamoff Code_Size;
CompiledCode.open(file_name + ".cod", ios::in | ios::binary| ios::ate);
CompiledCode.open(codfile, ios::in | ios::binary| ios::ate);
if (!CompiledCode.is_open())
return tags_liste;
Code_Size = CompiledCode.tellg();