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


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


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}


\subsection{Detailed Description}
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 E\+M\+B\+R\+Y\+O\+\_\+\+C\+E\+L\+L\+\_\+\+N\+O\+NE} otherwise.
\end{DoxyReturn}
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. 

\subsection{Function Documentation}
\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}}
\subsubsection{\texorpdfstring{embryo\+\_\+program\+\_\+variable\+\_\+count\+\_\+get()}{embryo\_program\_variable\_count\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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}}
\subsubsection{\texorpdfstring{embryo\+\_\+program\+\_\+variable\+\_\+get()}{embryo\_program\_variable\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} 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 E\+M\+B\+R\+Y\+O\+\_\+\+C\+E\+L\+L\+\_\+\+N\+O\+NE} otherwise. 
\end{DoxyReturn}


References E\+M\+B\+R\+Y\+O\+\_\+\+C\+E\+L\+L\+\_\+\+N\+O\+NE.

