\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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} int \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 
\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} Embryo\+\_\+\+Cell \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\+N\+E} otherwise.
\end{DoxyReturn}
In an Embryo program, a global variable can be declared public, as described in \hyperlink{Small_Page_Small_Scope_Subsection}{Scope}. The functions here allow the host program to access these public variables. 

\subsection{Function Documentation}
\hypertarget{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[{embryo\+\_\+program\+\_\+variable\+\_\+count\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} int embryo\+\_\+program\+\_\+variable\+\_\+count\+\_\+get (
\begin{DoxyParamCaption}
\item[{Embryo\+\_\+\+Program $\ast$}]{ep}
\end{DoxyParamCaption}
)}\label{group__Embryo__Public__Variable__Group_ga3515ce41a3a62d86b866f4cadd0c74cd}


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}{}\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[{embryo\+\_\+program\+\_\+variable\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} Embryo\+\_\+\+Cell embryo\+\_\+program\+\_\+variable\+\_\+get (
\begin{DoxyParamCaption}
\item[{Embryo\+\_\+\+Program $\ast$}]{ep, }
\item[{int}]{num}
\end{DoxyParamCaption}
)}\label{group__Embryo__Public__Variable__Group_ga9f9174d8fdde8fdca879f61df78744bb}


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\+N\+E} otherwise. 
\end{DoxyReturn}


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

