use NELEMENTS instead of registryFunction.h
This commit is contained in:
1 parent
e808742fe1
commit
76883c4a2f
2 files changed
+3
-4
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <dbDefs.h>
|
||||
#include <registryFunction.h>
|
||||
#include <subRecord.h>
|
||||
#define epicsExportSharedSymbols
|
||||
@@ -28,6 +29,6 @@ static registryFunctionRef mySubRef[] = {
|
||||
|
||||
epicsShareFunc void epicsShareAPI mySub(void)
|
||||
{
|
||||
registryFunctionRefAdd(mySubRef,registryFunctionRefNumber(mySubRef));
|
||||
registryFunctionRefAdd(mySubRef,NELEMENTS(mySubRef));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user