\hypertarget{group__Embryo__Public__Variable__Group}{}\doxysection{Public Variable Access Functions}
\label{group__Embryo__Public__Variable__Group}\index{Public Variable Access Functions@{Public Variable Access Functions}}


In an Embryo program, a global variable can be declared public, as described in \mbox{\hyperlink{Small_Page_Small_Scope_Subsection}{Scope}}.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI Embryo\+\_\+\+Cell \mbox{\hyperlink{group__Embryo__Public__Variable__Group_ga9714d1cbd46b3b0315a71c23413ad921}{embryo\+\_\+program\+\_\+variable\+\_\+find}} (Embryo\+\_\+\+Program $\ast$ep, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Retrieves the location of the public variable in the given program with the given name. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Embryo__Public__Variable__Group_ga3515ce41a3a62d86b866f4cadd0c74cd}{embryo\+\_\+program\+\_\+variable\+\_\+count\+\_\+get}} (Embryo\+\_\+\+Program $\ast$ep)
\begin{DoxyCompactList}\small\item\em Retrieves the number of public variables in the given program. \end{DoxyCompactList}\item 
EAPI Embryo\+\_\+\+Cell \mbox{\hyperlink{group__Embryo__Public__Variable__Group_ga9f9174d8fdde8fdca879f61df78744bb}{embryo\+\_\+program\+\_\+variable\+\_\+get}} (Embryo\+\_\+\+Program $\ast$ep, int num)
\begin{DoxyCompactList}\small\item\em Retrieves the location of the public variable in the given program with the given identifier. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
In an Embryo program, a global variable can be declared public, as described in \mbox{\hyperlink{Small_Page_Small_Scope_Subsection}{Scope}}. 

The functions here allow the host program to access these public variables. 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Embryo__Public__Variable__Group_ga9714d1cbd46b3b0315a71c23413ad921}\label{group__Embryo__Public__Variable__Group_ga9714d1cbd46b3b0315a71c23413ad921}} 
\index{Public Variable Access Functions@{Public Variable Access Functions}!embryo\_program\_variable\_find@{embryo\_program\_variable\_find}}
\index{embryo\_program\_variable\_find@{embryo\_program\_variable\_find}!Public Variable Access Functions@{Public Variable Access Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_variable\_find()}{embryo\_program\_variable\_find()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Cell embryo\+\_\+program\+\_\+variable\+\_\+find (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Retrieves the location of the public variable in the given program with the given name. 


\begin{DoxyParams}{Parameters}
{\em ep} & The given program. \\
\hline
{\em name} & The given name. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The address of the variable if found. {\ttfamily EMBRYO\+\_\+\+CELL\+\_\+\+NONE} otherwise. 
\end{DoxyReturn}


References \mbox{\hyperlink{Embryo_8h_a570d5164a5f3d5d05f63e2e60c6ba7ad}{EMBRYO\+\_\+\+CELL\+\_\+\+NONE}}.

\mbox{\Hypertarget{group__Embryo__Public__Variable__Group_ga3515ce41a3a62d86b866f4cadd0c74cd}\label{group__Embryo__Public__Variable__Group_ga3515ce41a3a62d86b866f4cadd0c74cd}} 
\index{Public Variable Access Functions@{Public Variable Access Functions}!embryo\_program\_variable\_count\_get@{embryo\_program\_variable\_count\_get}}
\index{embryo\_program\_variable\_count\_get@{embryo\_program\_variable\_count\_get}!Public Variable Access Functions@{Public Variable Access Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_variable\_count\_get()}{embryo\_program\_variable\_count\_get()}}
{\footnotesize\ttfamily EAPI int embryo\+\_\+program\+\_\+variable\+\_\+count\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep }\end{DoxyParamCaption})}



Retrieves the number of public variables in the given program. 


\begin{DoxyParams}{Parameters}
{\em ep} & The given program. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of public variables. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Embryo__Public__Variable__Group_ga9f9174d8fdde8fdca879f61df78744bb}\label{group__Embryo__Public__Variable__Group_ga9f9174d8fdde8fdca879f61df78744bb}} 
\index{Public Variable Access Functions@{Public Variable Access Functions}!embryo\_program\_variable\_get@{embryo\_program\_variable\_get}}
\index{embryo\_program\_variable\_get@{embryo\_program\_variable\_get}!Public Variable Access Functions@{Public Variable Access Functions}}
\doxysubsubsection{\texorpdfstring{embryo\_program\_variable\_get()}{embryo\_program\_variable\_get()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Cell embryo\+\_\+program\+\_\+variable\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program $\ast$}]{ep,  }\item[{int}]{num }\end{DoxyParamCaption})}



Retrieves the location of the public variable in the given program with the given identifier. 


\begin{DoxyParams}{Parameters}
{\em ep} & The given program. \\
\hline
{\em num} & The identifier of the public variable. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The virtual machine address of the variable if found. {\ttfamily EMBRYO\+\_\+\+CELL\+\_\+\+NONE} otherwise. 
\end{DoxyReturn}


References \mbox{\hyperlink{Embryo_8h_a570d5164a5f3d5d05f63e2e60c6ba7ad}{EMBRYO\+\_\+\+CELL\+\_\+\+NONE}}.

