\doxysubsection{Public Variable Access Functions}
\hypertarget{group__Embryo__Public__Variable__Group}{}\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 \doxysectlink{Small_Page_Small_Scope_Subsection}{Scope}{2}.  


\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI Embryo\+\_\+\+Cell \mbox{\hyperlink{group__Embryo__Public__Variable__Group_ga9714d1cbd46b3b0315a71c23413ad921}{embryo\+\_\+program\+\_\+variable\+\_\+find}} (Embryo\+\_\+\+Program \texorpdfstring{$\ast$}{*}ep, const char \texorpdfstring{$\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 \texorpdfstring{$\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 \texorpdfstring{$\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}


\doxysubsubsection{Detailed Description}
In an Embryo program, a global variable can be declared public, as described in \doxysectlink{Small_Page_Small_Scope_Subsection}{Scope}{2}. 

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

\doxysubsubsection{Function Documentation}
\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}}
\doxysubsubsubsection{\texorpdfstring{embryo\_program\_variable\_find()}{embryo\_program\_variable\_find()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Cell embryo\+\_\+program\+\_\+variable\+\_\+find (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program \texorpdfstring{$\ast$}{*}}]{ep,  }\item[{const char \texorpdfstring{$\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}}.

\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}}
\doxysubsubsubsection{\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 \texorpdfstring{$\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}
\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}}
\doxysubsubsubsection{\texorpdfstring{embryo\_program\_variable\_get()}{embryo\_program\_variable\_get()}}
{\footnotesize\ttfamily EAPI Embryo\+\_\+\+Cell embryo\+\_\+program\+\_\+variable\+\_\+get (\begin{DoxyParamCaption}\item[{Embryo\+\_\+\+Program \texorpdfstring{$\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}}.

