on some hook events, uc_hook_add() should not allow more than 1 handler. this add UC_ERR_HOOK_EXIST error type

This commit is contained in:
Nguyen Anh Quynh
2015-10-10 18:01:47 +08:00
parent 5b24c24e82
commit b1d41d414b
6 changed files with 46 additions and 10 deletions

View File

@ -52,6 +52,7 @@ const (
ERR_READ_UNALIGNED = 16
ERR_WRITE_UNALIGNED = 17
ERR_FETCH_UNALIGNED = 18
ERR_HOOK_EXIST = 19
MEM_READ = 16
MEM_WRITE = 17
MEM_FETCH = 18