Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Remove error message from api function FTnp2Find

Date2019-12-04 11:58
FromEduardo Moguillansky
Subject[Csnd-dev] Remove error message from api function FTnp2Find
I just created this issue in github:

https://github.com/csound/csound/issues/1229


I need to silently check if a table exists, but all api functions 
display an error whenever a table is not found. I think it would suffice 
to just return NULL, but that would result in lots of duplicate error 
messages wherever this function is called. A better solution might be to 
create a new api function which silently checks for existence. Could 
this be done without modifying abi compatibility?

cheers,

Date2019-12-04 13:32
FromJohn ff
SubjectRe: [Csnd-dev] Remove error message from api function FTnp2Find
Adding a new arg to the find function to control printing.  Will do later today of no one else does it

Sent from TypeApp
On 4 Dec 2019, at 11:59, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
I just created this issue in github:

https://github.com/csound/csound/issues/1229


I need to silently check if a table exists, but all api functions
display an error whenever a table is not found. I think it would suffice
to just return NULL, but that would result in lots of duplicate error
messages wherever this function is called. A better solution might be to
create a new api function which silently checks for existence. Could
this be done without modifying abi compatibility?

cheers,
Eduardo