Skip to content
Jurek Muszyński edited this page Mar 28, 2024 · 5 revisions

bool SVC(const char *string)

Description

For use in npp_svc_main(). Compares service name with string.

Returns

Returns true if service matches string, otherwise false.

Example

void npp_svc_main()
{
    if ( SVC("getCustomer") )
        getCustomer();
    else if ( SVC("getAccounts") )
        getAccounts();
}
Clone this wiki locally